moin, ich kriege es nicht hin zahlen auszugeben ....
also irrgend wie ist der puffer leer ...
achja, das liegt nicht an dem int 31h
aber heir noch der code
:
Code: [Auswählen]
xor edx,edx
num_to_str:
mov edi, puffer+6
mov bx,10
div bx
add dl,30h
mov [edi],dl
dec edi
cmp ax, 0
jne num_to_str
ret
puffer: times 7 db 'F'
...
mov ax, 1234
call num_to_str
mov esi, puffer
mov al, 0x00
int 30h
also irrgend wie ist der puffer leer ...
achja, das liegt nicht an dem int 31h
aber heir noch der code:
Code: [Auswählen]
int0: ;30h
pusha
push ds
cli
cmp ah, 0x00
je int0_0x00
jmp int0_end
int0_0x00: ;Text ausgabe
mov edi, 0xB8000
int0_0x00_start:
lodsb
or al,al
jz int0_0x00_end
mov [edi], byte al
inc edi
mov [edi], byte 1Bh
inc edi
jmp int0_0x00_start
int0_0x00_end:
jmp int0_end
int0_end:
sti
pop ds
popa
iret

Übersicht
Wiki
Hilfe
Suche
Einloggen
Registrieren
Drucken


Gespeichert
