Skip to content

Commit

Permalink
.git/COMMIT_EDITMSG
Browse files Browse the repository at this point in the history
  • Loading branch information
kervinck committed May 11, 2020
1 parent a347696 commit 140771f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Apps/CardTest/CardBoot.gcl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ gcl0x
| RAM page 2 |
+-----------------------------------------------------------------------}

\romType, \romTypeValue_DEVROM- {Version check >= DEVROM}
\romType, \romTypeValue_ROMv5- {Version check >= ROMv5}
[if<0 do _frameCount _vPCH: loop]

$500 Address= {512 bytes memory for one sector}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,20 @@
suba(1) #38 Check if writing into sound channel page (1..4)
anda(0xfc) #39
ora([vTmp]) #40 Combine second condition with first
bne(pc()+3) #41
bra(pc()+3) #42
ld(0xfc); C('Unsafe')#43 Clear low channelMask bits so it becomes safe
ld(0xff); C('Safe')#43(!) No change to channelMask because already safe
anda([channelMask]) #44
st([channelMask]) #45
ld([sysArgs+4]) #46
bne('.sysPi#49') #47
st([vTmp]) #41
ld([sysArgs+4]) #42 Check copy count
bne('.sysPi#45') #43
# Execute code (don't care about checksum anymore)
ld([sysArgs+5]); C('Execute')#48 Low run address
st([vLR]) #49 https://forum.gigatron.io/viewtopic.php?p=29#p29
suba(2) #50
st([vPC]) #51
ld([sysArgs+6]) #52 High run address
st([vPC+1]) #53
st([vLR+1]) #54
ld(hi('REENTER'),Y) #55
jmp(Y,'REENTER') #56
ld(-60/2) #57
ld([sysArgs+5]); C('Execute')#44 Low run address
st([vLR]) #45 https://forum.gigatron.io/viewtopic.php?p=29#p29
suba(2) #46
st([vPC]) #47
ld([sysArgs+6]) #48 High run address
st([vPC+1]) #49
st([vLR+1]) #50
ld(hi('REENTER'),Y) #51
jmp(Y,'REENTER') #52
ld(-56/2) #53
# Invalid checksum
label('.sysPi#19')
wait(25-19); C('Invalid checksum')#19 Reset checksum
Expand All @@ -114,14 +109,21 @@
jmp(Y,'REENTER') #28
ld(-32/2) #29
# Loading data
label('.sysPi#49')
ld([sysArgs+0]); C('Loading data')#49 Continue checksum
suba(1,X) #50 Point at last byte
ld([Y,X]) #51
st([sysArgs+2]) #52
ld(hi('REENTER'),Y) #53
jmp(Y,'REENTER') #54
ld(-58/2) #55
label('.sysPi#45')
ld([vTmp]); C('Loading data')#45
bne(pc()+3) #46
bra(pc()+3) #47
ld(0xfc); C('Unsafe')#48 Clear low channelMask bits so it becomes safe
ld(0xff); C('Safe')#48(!) No change to channelMask because already safe
anda([channelMask]) #49
st([channelMask]) #50
ld([sysArgs+0]) #51 Continue checksum
suba(1,X) #52 Point at last byte
ld([Y,X]) #53
st([sysArgs+2]) #54
ld(hi('REENTER'),Y) #55
jmp(Y,'REENTER') #56
ld(-60/2) #57

#-----------------------------------------------------------------------
# Extension SYS_LoaderPayloadCopy_34
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev.rom: Core/* Apps/*/* Makefile interface.json
zippedRacerHorizon=Apps/Racer/Horizon-256x16.rgb\
Racer=Apps/Racer/Racer_v2.gcl\
Mandelbrot=Apps/Mandelbrot/Mandelbrot_v1.gcl\
SYS_Loader_v4.py\
SYS_Loader_vX.py\
Pictures=Apps/Pictures/Pictures_v3.gcl\
Loader=Apps/Loader/Loader_v4.gcl\
Credits=Apps/Credits/Credits_v3.gcl\
Expand Down

0 comments on commit 140771f

Please sign in to comment.