Gnu as problem
Posted: Sun Feb 02, 2003 8:04 am
Can anyone figure out why the following code doesn't print the letter 's' at the screen? I'm using GNU as to compile it, I raw write the output of ld at the floppy, magic numbers are ok etc. The problem seems to be at the instruction movb (%bp), %al, as it doesn' t put the ascii of 's' at %al. What have I understood wrong? Thank you in advance.
.code16
.text
leaw msg1, %bp
movb $0x0e, %ah
movb (%bp), %al
int 0x10
msg1: .ascii "sample"
.code16
.text
leaw msg1, %bp
movb $0x0e, %ah
movb (%bp), %al
int 0x10
msg1: .ascii "sample"