Skip to content

Commit

Permalink
Merge pull request #39 from skx/37-cpm-fix
Browse files Browse the repository at this point in the history
Ensure that the first code executed is our decryption routine
  • Loading branch information
skx authored Mar 28, 2024
2 parents b0a3740 + aa3d0e7 commit 1342c8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions game.z80
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ MACRO POP_ALL
;
ORG ENTRYPOINT

; Call system-specific setup routine before we do anything else.
call bios_init

;
; Our game can be compiled with optional "encryption", which uses
; a simple scheme to hide the strings in our binary.
Expand Down Expand Up @@ -181,6 +178,10 @@ enc_loop:
enc_end:
ENDIF

; Call system-specific setup routine before we do anything else.
call bios_init


; Here we're going to copy our game-state to the end of RAM
;
; We do this so that everything "resets" if the player dies/wins
Expand Down

0 comments on commit 1342c8b

Please sign in to comment.