Skip to content

Commit 9702aa5

Browse files
committed
Updated 6502, fixed VSCode settings.
1 parent c91d22c commit 9702aa5

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

History.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ RenegadeGBA revision history
22
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
33

44

5-
V0.1.1 - 2022-08-23 (FluBBa)
5+
V0.1.1 - 2022-09-18 (FluBBa)
66
Cleaned up source.
77

88
V0.1.0 - 2021-03-17 (FluBBa)

RenegadeGBA.code-workspace

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
"path": "."
55
}
66
],
7-
"settings": {}
7+
"settings": {
8+
"terminal.integrated.env.osx": {
9+
"DEVKITARM": "/opt/devkitPro/devkitARM",
10+
"DEVKITPRO": "/opt/devkitPro"
11+
}
12+
}
813
}

source/GUI.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "ARM6502/Version.h"
1212
#include "RenegadeVideo/Version.h"
1313

14-
#define EMUVERSION "V0.1.1 2022-08-23"
14+
#define EMUVERSION "V0.1.1 2022-09-18"
1515

1616
const fptr fnMain[] = {nullUI, subUI, subUI, subUI, subUI, subUI, subUI, subUI, subUI};
1717

@@ -25,9 +25,9 @@ const fptr fnList6[] = {coinASet, coinBSet, difficultSet, livesSet, bonusSet, ca
2525
const fptr fnList7[] = {uiDummy};
2626
const fptr fnList8[] = {quickSelectGame, quickSelectGame, quickSelectGame, quickSelectGame};
2727
const fptr *const fnListX[] = {fnList0, fnList1, fnList2, fnList3, fnList4, fnList5, fnList6, fnList7, fnList8};
28-
const u8 menuXitems[] = {ARRSIZE(fnList0), ARRSIZE(fnList1), ARRSIZE(fnList2), ARRSIZE(fnList3), ARRSIZE(fnList4), ARRSIZE(fnList5), ARRSIZE(fnList6), ARRSIZE(fnList7), ARRSIZE(fnList8)};
29-
const fptr drawuiX[] = {uiNullNormal, uiMainMenu, uiFile, uiController, uiDisplay, uiSettings, uiDipswitches, uiAbout, uiLoadGame};
30-
const u8 menuXback[] = {0,0,1,1,1,1,1,1,2};
28+
const u8 menuXItems[] = {ARRSIZE(fnList0), ARRSIZE(fnList1), ARRSIZE(fnList2), ARRSIZE(fnList3), ARRSIZE(fnList4), ARRSIZE(fnList5), ARRSIZE(fnList6), ARRSIZE(fnList7), ARRSIZE(fnList8)};
29+
const fptr drawUIX[] = {uiNullNormal, uiMainMenu, uiFile, uiController, uiDisplay, uiSettings, uiDipswitches, uiAbout, uiLoadGame};
30+
const u8 menuXBack[] = {0,0,1,1,1,1,1,1,2};
3131

3232
u8 gGammaValue;
3333

source/Shared

Submodule Shared updated 1 file

source/cpu.s

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ runStart:
5757
;@----------------------------------------------------------------------------
5858
reFrameLoop:
5959
;@----------------------------------------------------------------------------
60+
mov r0,#CYCLE_PSL
61+
bl m6502RunXCycles
6062
ldr reptr,=reVideo_0
6163
bl doScanline
6264
cmp r0,#0
63-
movne r0,#CYCLE_PSL
64-
bne m6502RunXCycles
65+
bne reFrameLoop
6566
b reEnd
6667
;@----------------------------------------------------------------------------
6768

@@ -134,11 +135,7 @@ cpuReset: ;@ Called by loadCart/resetGame
134135
adr r4,cpuMapData
135136
bl mapM6502Memory
136137

137-
ldr r0,=reFrameLoop
138-
str r0,[m6502optbl,#m6502NextTimeout]
139-
str r0,[m6502optbl,#m6502NextTimeout_]
140-
141-
mov r0,#0
138+
mov r0,m6502optbl
142139
bl m6502Reset
143140

144141
// adr r0,bvcHack

0 commit comments

Comments
 (0)