Jump to content

How to ?


Recommended Posts

function _RomDumpCode(Info: TRomDumpCodeInfo): Pointer;

var

CodeStart: Pointer;

CodeEnd: Pointer;

begin

asm

JMP @@End

{ *BEGIN* 16-bit code }

{ -- never use it in your program! -- }

{ COM which writes ROM-BIOS to StdOut }

@@Start:

{ Dump F000:0000-F000:FFFE }

XOR eDX, eDX // DS = 0xF000 ; Data segment

MOV DH, 0F0h

MOV DS, eDX

XOR eDX, eDX // DX = 0x0000 ; Data offset

XOR eCX, eCX // CX = 0xFFFF ; Data length

DEC eCX

XOR eBX, eBX // BX = 0x0001 ; STDOUT (file handle)

INC eBX

MOV AH, 40h // DosCall(0x40) ; INT21, DOS_WRITE_TO_HANDLE

INT 21h

JC @@Exit // On error exit ; AL = Error code

{ Dump F000:FFFF }

XOR eDX, eDX // DS = 0xF000 ; Data segment

MOV DH, 0F0h

MOV DS, eDX

XOR eDX, eDX // DX = 0xFFFF ; Data offset

DEC eDX

XOR eCX, eCX // CX = 0x0001 ; Data length

INC eCX

MOV eBX, eCX // BX = 0x0001 ; STDOUT (file handle)

MOV AH, 40h // DosCall(0x40) ; INT21, DOS_WRITE_TO_HANDLE

INT 21h

JC @@Exit // On error exit ; AL = Error code

MOV AL, 0 // no error ; AL = 0

@@Exit:

MOV AH, 4Ch // DosCall(0x4C) ; INT21, DOS_TERMINATE_EXE

INT 21h

@@End:

{ *END* 16-bit code }

MOV CodeStart, OFFSET @@Start

MOV CodeEnd, OFFSET @@End

end;

case Info of

rdciStart:

Result := CodeStart;

rdciEnd:

Result := CodeEnd;

rdciSize:

Result := Pointer(Cardinal(CodeEnd) - Cardinal(CodeStart));

else

Result := nil;

end;

end;

Edited by ernesthan
Link to comment
Share on other sites

Sorry, I don't have a clue what you want.

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

  • Moderators

I don't think you could have been less informitive if you tried. Please post a detailed description of what you're trying to accompish.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

(my pirate voice) me thinks he be wanting a land lubber to translate that there code to AutoIt, hoping that ye not be disinclined to acquiesce to his request.

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Link to comment
Share on other sites

Looka a bit like Assembly code and gibberish to me.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...