flat assembler
Message board for the users of flat assembler.
Index
> DOS > [ASK] Assign the code address |
Author |
|
DJ Mauretto 19 Nov 2008, 09:08
Quote: When I run the 'helloworld.exe' progrom. _________________ Nil Volentibus Arduum |
|||
19 Nov 2008, 09:08 |
|
baldr 19 Nov 2008, 12:39
rednight,
Do you want to compile that code as if b8 00 4c is at particular offset? Code: ;org 0EFF7h is implicit from the following instructions' size push cs pop ds mov ah,9 mov dx,hello int 21h org 0F000h; segment is unimportant because of "push cs"/"pop ds" mov ax,4C00h int 21h hello db 'Hello world!',24h _________________ "Don't belong. Never join. Think for yourself. Peace." – Victor Stone. |
|||
19 Nov 2008, 12:39 |
|
rednight 20 Nov 2008, 00:55
baldr wrote: rednight, Dear baldr, Yes, you got it ! ^^ I'd like to compile code at the particular offset. (memory address especially) Sorry about my example isn't good. Further detail, after I compiled the program to 'helloworld.exe.' And I execute it, the opcode 'b8 00 4c' can be loaded to particular memory address where I assigned. Anyway, do you know how to do it ? Please share your experience, thanks in advance. |
|||
20 Nov 2008, 00:55 |
|
baldr 20 Nov 2008, 18:54
rednight,
How do you expect code to be loaded at specific address? Copy it yourself. Or use debug bf000h.bin <script.d, where script.d contains Code: m 100 11a b000:eff7 g =b000:eff7 May be if you explain the problem in more details… |
|||
20 Nov 2008, 18:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.