23. November 2024, 01:32
xor edx,edx num_to_str:mov edi, puffer+6mov bx,10div bxadd dl,30hmov [edi],dldec edicmp ax, 0jne num_to_strretpuffer: times 7 db 'F'... mov ax, 1234 call num_to_str mov esi, puffer mov al, 0x00 int 30h
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
Code: [Auswählen]num_to_str:mov edi, puffer+6...jne num_to_strret
num_to_str:mov edi, puffer+6...jne num_to_strret