This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from 9xbt/branch-o'-ekeleze
very simple TUI test i wrote on vacation
- Loading branch information
Showing
5 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ Makefile | |
iDOS.iml | ||
.idea | ||
.run | ||
*.bat | ||
*.bat | ||
*.sh |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
%include "src/GUIcore.asm" | ||
%include "src/GUI/GUIcore.asm" | ||
%include "src/functions/clear.asm" | ||
|
||
section .data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
%include "src/core.asm" | ||
%include "src/functions/clear.asm" | ||
|
||
section .data | ||
cmd_tui_test: db `tui\0` | ||
text_one: db `one\0` | ||
text_two: db `two\0` | ||
|
||
section .text | ||
tui_run: | ||
call func_clear | ||
mov ch, 0 | ||
jmp .run | ||
|
||
.run: | ||
mov ah, 0h | ||
int 16h | ||
|
||
cmp al, 113 | ||
je .down | ||
|
||
cmp al, 119 | ||
je .up | ||
|
||
cmp al, 27 | ||
je .ret | ||
|
||
cmp ch, 1 | ||
je .display_one | ||
|
||
cmp ch, 2 | ||
je .display_two | ||
|
||
jmp .run | ||
|
||
.ret: | ||
call func_clear | ||
ret | ||
|
||
.display_one: | ||
;mov ah, 02h | ||
;mov bh, 0 | ||
;mov dh, 10 | ||
;mov dl, 10 | ||
;int 10h | ||
|
||
write text_one | ||
jmp .run | ||
|
||
.display_two: | ||
;mov ah, 02h | ||
;mov bh, 0 | ||
;mov dh, 11 | ||
;mov dl, 10 | ||
;int 10h | ||
|
||
write text_two | ||
jmp .run | ||
|
||
.up: | ||
inc ch | ||
cmp ch, 0 | ||
je .last | ||
|
||
jmp .run | ||
|
||
.down: | ||
cmp ch, 2 | ||
je .first | ||
|
||
mov ch, 2 | ||
jmp .run | ||
|
||
.last: | ||
mov ch, 2 | ||
jmp .run | ||
|
||
.first: | ||
mov ch, 1 | ||
jmp .run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters