assembly - FASM Bootloader input -


I started by creating a bootloader from scratch in FASM. I just made a basic input but I do not know how some To do.

This is my code:

  Start: mov ax, add 07C0h ax, 288 mov ss, 4096 mov ax, 07c0m mov ds, aus wax c, text_string Call print_string jmp read; The infinite loop of reading! Text_string db '& lt; Hammerz & gt; : Booted! ', 13, 10, 0 read: mov ah, 0h; Get the character from keyboard int 16h; Store it in AL MOV ah, 0eh; Display a letter in AL int 10h; Alias, read it echo jmp read_read_txt: mov c, AL call print_string print_string: mov ah, 0 this Repetition: lodsb CMP al, 0Ge .Done int 10h jmp .repeat .done: Ret times 510 - ($ - $$) db0 dw 0xAA55   

This accepts input on console , But when I press enter, I want to see the contents of the input and depending on it, I want to do the stuff.

In addition, I want to move the cursor to the next line Now if I enter I write the text on the same line.

In the place where you meet four and then write it on the screen you store four in some memory buffer Will need to be

When you find the 'Enter' key by comparing the 'Enter' key code to alpha with 13 or 10, you should analyze your buffer and do the list of things; can be useful.

If you want to move your cursor, take a look at the int 10h (which you have already used) Description:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -