Mail Archives: djgpp/1996/11/25/23:36:24
Hi,
Does as know the segment:offset address mode while in 16 bit mode (by
added a directive .code16) ? If as only know flat address, how can I
use BIOS int 0x10 Funciton 0x13 to write string to screen? For example,
I have the following code,
...
.code16
movw $0x1301, %ax
movw $0x0007, %bx
movw $0x0005, %cx
movw $0x0000, %dx
movw msg, %bp
int $0x10
msg:
.string "Hello"
Since int 0x10 will reference the string by %es:%bp, well, if my %es is not
zero and as doesn't know segment:offset, it seems I can't get Hello print on
screen. In fact, I did not print out anything on my screen but the cursor
did move. Any suggestion and help is appreciated, Thanks a lot.
Kuang-chun Cheng
kccheng AT hep2 DOT phys DOT sinica DOT edu DOT tw
- Raw text -