From ad6565f7fd5df784cf84598c1c1275c013066630 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 22 Apr 2019 23:33:10 +0200 Subject: [PATCH] menu include --- .program2.asm.swp | Bin 0 -> 1024 bytes boot.asm | 1 - boot.bin | Bin 512 -> 512 bytes disk.img | Bin 737280 -> 737280 bytes program.asm | 66 +++++++++++++++++++++++++++++++++++++++++++++- program.bin | Bin 367 -> 482 bytes 6 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 .program2.asm.swp diff --git a/.program2.asm.swp b/.program2.asm.swp new file mode 100644 index 0000000000000000000000000000000000000000..84b2d0bcb4d3a5a362c8b4fe58d1ec79a7e31c8b GIT binary patch literal 1024 zcmYc?$V<%2S1{7E)H7y40(*oQ7>e@qOOS+cG81)^ampb}6cpvB7bWHz=_MBDB8!i* MM?+vV1O_Gq05!!6bpQYW literal 0 HcmV?d00001 diff --git a/boot.asm b/boot.asm index 445415a..4335b0c 100755 --- a/boot.asm +++ b/boot.asm @@ -63,7 +63,6 @@ welcome: start: mov ah, 0x00 int 0x16 - cmp al, "0" jmp load_it_all_1 load_it_all_1: diff --git a/boot.bin b/boot.bin index 781a96056597b6dcc20b9e9b6d4ce8263e8f6268..0e9d01b55995e4f9a6f978adc316bc2ce7e17399 100644 GIT binary patch delta 92 zcmV-i0Hgna1b_qxfcy`128b55kqA2@rhVvM0JH+P0JZ|M0nHG;w0!7J0KP4K=tuyx y0L>Qb0KV&yXdV`|ea#bc2%YKx5C8!B^uGOk=neqB5|Nx40jjaKNC5-@09C5CEhR(% delta 113 zcmV-%0FM8F1b_qxfcy`128b57kqA2_sD0>Q0JH+P0JZ|M0nHG;wtVPN0KPAM=t=;z z0L>OWFzW!m?U804Ft>fp6LJWh>HrV`0Q&U4|9t2U0KOD`=m-F`0L>OLz|9$~2*7j( Tv<}S>>-EFysIjz20RmO3LJTm8 diff --git a/disk.img b/disk.img index 0995b63c7e7cd88e9c44c9094ff3b8d02921ac82..0fb2cc8fe6dda49e4e892ab84dd342f119255975 100755 GIT binary patch delta 336 zcmZo@&~0eY&w2sH81!W_6bd#BgwdG<2Db*$$uCV>zM^# zOobT5wu$AefZ^?4yLEz{at{QzFf|-w1PLv?Cun)2ly3`L$JdQ4n^d;foE3PD;K>1b z4BbHW-G(oG7@7}rH2*dz-TxZwj)p(-CF~7<1WTk|e*l`&{6nLJqxk^G;(LOxdv`D} zfN1GfumnR1XY&h?#LJTZJ2XHtFSGwo?qJ%kr7Fk(2DVT-1WG4C>1HTBO>pu-MvW$x lHWtP<7N#~9<~9}}o3)LFt&N4fjfJC)g|m%?YZ(i-4FJd`d`|!X delta 247 zcmZo@&~0eY|A3TbLS-0j=vce8I)ge3+y8 zw?XNf*W8o8Gi}$}2DAVK&Ozy?Q2H~J77>KVs|!xv$TGc&rHzHLjfJU=g}IFd$YyP0 WVQXVyZ)4$TW8rLL;abMRZ36%xkyE_@ diff --git a/program.asm b/program.asm index d5ecb69..63b5f49 100755 --- a/program.asm +++ b/program.asm @@ -66,18 +66,79 @@ print_projects: lea di, [projects] ; RDI now has the address of the array .loop + mov [storebx], bx mov ah, 02h ;mov bh, 0h add dh, 1h ;move cursor down + mov dl, 4h; + int 10h + + mov ax, [currentselection] + cmp ax, bx + jne .normalbackground + mov ah, 06h ;draw rect on background + mov ch, dh + mov cl, 4h + mov dl, 24h + mov bh, 7Ch + int 10h + jmp .drawstring + +.normalbackground + mov ah, 06h ;draw rect on background + mov ch, dh + mov cl, 4h + mov dl, 24h + mov bh, 1Eh int 10h + jmp .drawstring +.drawstring + mov bx, [storebx] mov si, [di+bx] ; Get the address of string1 call print add bx, 8 cmp bx, 48 jne .loop - jmp exit + jmp waitforkey + + +waitforkey: + mov ah, 0x00 + int 0x16 + cmp ah, 1Fh + je .up + cmp ah, 11h + je .down + jmp waitforkey + +.up + mov ax, [currentselection] + cmp ax, 40 + je .reup + add ax, 8 + mov [currentselection], ax + jmp print_projects + +.reup + mov ax, 0 + mov [currentselection], ax + jmp print_projects + + +.down + mov ax, [currentselection] + cmp ax, 0 + je .redown + sub ax, 8 + mov [currentselection], ax + jmp print_projects + +.redown + mov ax, 40 + mov [currentselection], ax + jmp print_projects print: @@ -103,3 +164,6 @@ project5 db "Angeliki / Voices", 0x0A,0 project6 db "Zalan / Phantasmagoria", 0x0A,0 projects dq project1, project2, project3, project4, project5, project6 + +currentselection dw 0 +storebx dw 0 diff --git a/program.bin b/program.bin index f480c58c0a33d7a46d840a2f9fa569035f029979..fc414f450a5d40ea55b960223f63f36050c4cf59 100644 GIT binary patch delta 218 zcmaFQ^oV&vY(2B!i>VA-n6@))W81`XR>1IfuiZMqPPqqyTbLS-F@l5^-V?OEQOdW4 zt>f!PmQ5<#Yt9P1M)2f-Jce$d`fkG)J`Bx=IhubPlLr6845af+bR~ zKLAZ>{-IIA(R_eo@jb!Uy*n5fK(ur#Sc0L1v-t%`;$_MI9U35+m)ZX(c5F9M6=VPd TTPPg@rIVm^GnAeNr9p}Tkxowr delta 102 zcmaFF{GMq-to9Uv7itV!n6@))W81`XR>1IfubsW%7N&+{jAsS94PS6EG#}<@{%uhD f<~8@k@7oQw2{3@cIVk-UN`HpZB7zWkbtnx06|Wk{