diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 22:27:54 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 22:27:54 +0300 |
| commit | a36e5e001a4f17505c40b7f7a8f9c1f514f40de1 (patch) | |
| tree | 7511fff343ef5eb0329e18e5cb5584387c4f653a /resources | |
| parent | 46459fc1b753abc83c355440a014c696c0dacd3a (diff) | |
Fix bugs, add tests
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/asm/text_mode.atk16 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/resources/asm/text_mode.atk16 b/resources/asm/text_mode.atk16 index 3fc40d2..cab9562 100644 --- a/resources/asm/text_mode.atk16 +++ b/resources/asm/text_mode.atk16 @@ -1,8 +1,20 @@ @use ext_string_io:* @include %bootstrap +@include %std_mem + +@label text_buffer_size + 2048 @label main + ; use memset to clear the text buffer + ldi vt_text_mem RA ; RA := text buffer address pointer + ldr RA RA ; RA := text buffer address + ldi text_buffer_size RB ; RB := pointer to 1024 + ldr RB RB ; RB := 1024 + ldi 0 RC ; RC := 0 + calli memset + cursor_to_line RC 1 put_string RC RB " HELLO #vaincoodijutut" new_line RC @@ -16,7 +28,7 @@ @label loop jpi loop -@label my_keyboard_isr +@label keyboard_isr stack_stash RA RB RD ldi vt_kb_pp_addr RA ; RA := Keyboard peripheral address pointer ldr RA RA ; RA := Keyboard peripheral address deref @@ -54,5 +66,5 @@ @address vt_ISR0 @begin_override - my_keyboard_isr + keyboard_isr @end_override |
