flat assembler
Message board for the users of flat assembler.
Index
> Main > Far procedures and labels |
Author |
|
Tomasz Grysztar 23 Jun 2005, 13:58
It should be:
Code: LDS DX,[OldInt21h] Also I'd prefer to not use DB to define opcodes: Code: STI PUSHF CALL FAR DWORD 0:0 LABEL OldInt21h DWORD AT $-4 CLI Last edited by Tomasz Grysztar on 23 Jun 2005, 14:05; edited 2 times in total |
|||
23 Jun 2005, 13:58 |
|
vid 23 Jun 2005, 14:00
privalov: now i'm confused. why "dword" ?
|
|||
23 Jun 2005, 14:00 |
|
Tomasz Grysztar 23 Jun 2005, 14:01
16-bit far pointer is DWORD, 32-bit far pointer is PWORD.
Also definitions like this are correct: Code: ptr16 dd 0:0 ptr32 dp 0:0 where first 0 is 16-bit segment/selector and second 0 is 16/32-bit offset. |
|||
23 Jun 2005, 14:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.