Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Plaza521 | 2584361a8b | |
Plaza52 | 229858c9f3 | |
Plaza52 | 16e995196f |
16
funcs.asm
16
funcs.asm
|
@ -772,6 +772,22 @@ write_table:
|
|||
popa
|
||||
ret
|
||||
|
||||
; Change table
|
||||
; SI - table in FS table (0 - return to previous table)
|
||||
change_table:
|
||||
pusha
|
||||
mov ah, 02h
|
||||
mov al, 4
|
||||
mov dl, [BOOT_DRIVE]
|
||||
mov ch, [si]
|
||||
mov dh, [si+1]
|
||||
mov cl, [si+2]
|
||||
mov bx, 0x8000
|
||||
int 13h
|
||||
popa
|
||||
ret
|
||||
|
||||
|
||||
|
||||
wait_key:
|
||||
mov ah, 11h
|
||||
|
|
|
@ -34,6 +34,7 @@ functable:
|
|||
dw get_cursor_pos
|
||||
dw set_cursor_pos
|
||||
dw read_table
|
||||
dw change_table
|
||||
dw 0
|
||||
|
||||
times 1024 - ($-$$) db 0
|
||||
|
|
BIN
iso/boot.img
BIN
iso/boot.img
Binary file not shown.
BIN
iso/calc.bin
BIN
iso/calc.bin
Binary file not shown.
|
@ -1,10 +0,0 @@
|
|||
Privet, ti 4udovishe
|
||||
Novay strok
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Dolistay ahaha
|
BIN
iso/notepad.bin
BIN
iso/notepad.bin
Binary file not shown.
BIN
iso/os.bin
BIN
iso/os.bin
Binary file not shown.
BIN
iso/snake.bin
BIN
iso/snake.bin
Binary file not shown.
BIN
iso/viewer.bin
BIN
iso/viewer.bin
Binary file not shown.
|
@ -1,16 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir iso/
|
||||
rm iso/os.bin
|
||||
|
||||
echo
|
||||
echo
|
||||
./fasm bootloader.asm iso/os.bin
|
||||
fasm bootloader.asm iso/os.bin
|
||||
echo
|
||||
./fasm programs/calculator.asm iso/calc.bin
|
||||
fasm programs/calculator.asm iso/calc.bin
|
||||
echo
|
||||
# ./fasm programs/notepad.asm iso/notepad.bin
|
||||
# fasm programs/notepad.asm iso/notepad.bin
|
||||
# echo
|
||||
./fasm programs/viewer.asm iso/viewer.bin
|
||||
fasm programs/viewer.asm iso/viewer.bin
|
||||
echo
|
||||
nasm -fbin programs/snake.asm -o iso/snake.bin
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue