flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Kenneth 30 Jul 2008, 05:25
Code: org $0100 use16 mov ah, $02 print: mov dl, [hello + bx] int $21 inc bx cmp bx, hello.size jne print int $20 hello db 'hello', $24 hello.size = $ - hello ;current offset - address of hello Or you can just use this Code: struc db [bytes] { common . db bytes .size = $ - . } |
|||
![]() |
|
DOS386 23 Aug 2008, 07:33
slovach wrote:
1. Why the $24 -> dollar "$" ? Do you want to see "hello$" ??? ![]() PS: prefixing hex numbers with dollar is good ![]() 2. Code: txhello db 'hello', 0 and compare against 0 before printing the char ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.