Skip to content

Commit

Permalink
Version 2
Browse files Browse the repository at this point in the history
Adds Microsoft sound, fixes a few bugs
  • Loading branch information
simontime authored Sep 27, 2020
1 parent 6cc39a8 commit 4d6463d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion gc95.asm
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,23 @@ GameExe:
mov r15,#0
call Fi_graph
; play sound
mov r1,#8
movw rr2,#2000h
call SND_ADDR
mov r0,#5
call CTRL_SP
; delay for 2 seconds
mov r2,#10
delay_loop:
call Delay200ms
dec r2
br nz,delay_loop
; stop speech
call Speech_Stop
; clear screen
call Cls_scn
Expand Down Expand Up @@ -396,12 +406,17 @@ adig3:
sub r11,#6
mul_check:
; increment if all numbers equal
; increment/decrement if all numbers equal
cmp r9,r10
br ne,gen_done
cmp r10,r11
br ne,gen_done
cmp r11,#9
br eq,decrem
inc r11
br gen_done
decrem:
dec r11
gen_done:
ret
Expand Down
Binary file modified gfx.raw
Binary file not shown.
Binary file added mssound.4
Binary file not shown.

0 comments on commit 4d6463d

Please sign in to comment.