flat assembler
Message board for the users of flat assembler.
Index
> DOS > How does db 80h,0 rb 80h work? |
Author |
|
Dryobates 01 Mar 2004, 20:10
Let us write it as:
Buffer: db 80h, 0 rb 80h, 0 Buffer is an address in memory where you can find: number 80h followed by number 0 and then we reserve 80h bytes (some unknown data will be put ther on programs start) and then number 0. So you have in memory: 80h, 0, some_data, some_data, some_data, ..., some_data, 0 In the function you are using there is need to Buffer will have such structure (chec in the interrupt description). The last 0 is only for you There is no need to use them (of course only in your part of code). I wonder, why it is legall to put constant after rb. I don't remember that it was mentioned in manual, but... that's surely nice feature |
|||
01 Mar 2004, 20:10 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.