Answer the question
In order to leave comments, you need to log in
Can you help me find the error?
Please help me find the error in the code. He must be able to type and erase text, but he can only type.
section .text
use16
org 0x7C00
start:
mov ax, cs
mov ds, ax
mov si,a
cld
mov ah, 0x0e
mov bh,0
jmp cos
cos:
lodsb
test al, al
jz text
int 10h
jmp cos
text:
mov ah,0
int 16h
cmp ah,0Eh
jz backspace
mov ah,0x0e
mov bh,0
jmp text
backspace:
mov ah,0x0e
mov bh,0
mov al,8
int 10h
mov ah,0x0e
mov bh,0
mov al,0
int 10h
mov ah,0x0e
mov bh,0
mov al,8
int 10h
jmp text
section .data
a db 'Starting OS',0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question