Code: Select all
.global _start
_start:
movl $0xb800, %eax
movl %eax, %es
movl $0x41, (0)
movl $0x1f, (1)
loop:
jmp loop
In addition, the way to run that programme is to create an os in virtualbox and launch the os by pointing the boot floppy to generated programme, e.g. bin.img. This procedure works whilst the code is exactly the same as what is in tutorial, but does not work when programme converted to AT&T syntax version.
I think the problem should be from where I move characters (0x41 & 0x1f) to the place the display register located (i.e. 0xb800); because I am not familiar with assembly. There should have something I did was wrong but am not aware of it at all.
Hope someone can give me advice,
I appreciate it.
Thank you very much,
env: GNU/Linux kernel 2.6.20/ Debian lenny testing/ gcc 4.2.2-4/ as 2.18/ virtualbox 1.5.6