Printing to screen using AT&T assembly syntax
Hi there,
I'm trying to build a bootsector. I want the bootsector to print some letter on the screen. For that I'm using GAS assembly and writen the following code:
.global _start
_start:
mov 0xb800, %ax
mov %ax, %es
movb $0x41, %es:0
movb $0x1f, %es:1
loop1: jmp loop1
For some reason this doesn't work. I'm trying to run it using Bochs and using rebooting of my machine, both give the same result - Nada !
Can someone please help me and show me some code that really works ? That will be great !
Thanks,
doron
|