I'm trying to display a number on my boot, but nothing is displayed. In fact I'm trying to determine the memory size from int 12h, have I done something not normal?
that's my boot code :
bits 16
org 0x0
jmp start
%include "display.INC"
start :
mov ax , 0x07c0
mov ds , ax
mov es , ax
mov ax , 0x8000
mov ss , ax
mov sp , 0x7000
int 12h
mov cx , 0
call digit
mov si , buffer_string
call afficher
digit :
div 10
test al , 0
jz end_digit
mov bx , al
add bx , 0x30
mov byte [buffer_string+cx] , byte [bx]
inc cx
jmp digit
end_digit : ret
end :
jmp end
times 510-($-$$) db 144
dw 0xaa55
And there is the file to display :
afficher :
push ax
push bx
debut :
lodsb
cmp al , 0
jz fin
mov ah ,0x0e
mov bx ,0x07
int 10h
JMP debut
fin :
pop bx
pop ax
ret
Can you help me please ??