mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-28 03:29:59 +00:00
add vector to reduce demo rebuild
This commit is contained in:
parent
8edd301792
commit
ebe77f26f4
@ -49,4 +49,4 @@ for (i = 0; i < entries.length; i++)
|
||||
f = a.createtextfile(WScript.Arguments(1))
|
||||
f.write(groups)
|
||||
f.close()
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1))
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1), 0, 1)
|
||||
|
@ -41,6 +41,5 @@ if (!a.fileexists(WScript.Arguments(1)) || a.getfile(WScript.Arguments(1)).datel
|
||||
source.writeline("!text \"" + ((val >= 0) ? (entries[i].substr(val + 1)) : "") + "\"")
|
||||
}
|
||||
|
||||
x = new ActiveXObject("wscript.shell")
|
||||
x.run('cmd /c %acme% -o ' + WScript.Arguments(1) + ' build\\okvs.tmp')
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(1) + ' build\\okvs.tmp', 0, 1)
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ for (i = 0; i < entries.length; i++)
|
||||
f = a.createtextfile(WScript.Arguments(1))
|
||||
f.write(groups)
|
||||
f.close()
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1))
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1), 0, 1)
|
||||
|
@ -25,4 +25,4 @@ for (i = 0; i < entries.length; i++)
|
||||
f = a.createtextfile(WScript.Arguments(1))
|
||||
f.write(groups)
|
||||
f.close()
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1))
|
||||
new ActiveXObject("wscript.shell").run('cmd /c %acme% -o ' + WScript.Arguments(2) + " " + WScript.Arguments(1), 0, 1)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
res/DEMO/TB
BIN
res/DEMO/TB
Binary file not shown.
Binary file not shown.
@ -137,6 +137,9 @@ SwitchToBank2
|
||||
rts
|
||||
!source "src/prodos.path.a" ; paths end up on the same page
|
||||
|
||||
; iLoadFileDirect (label is in constants.a)
|
||||
jmp LoadFileDirect ; no direct calling - target can move
|
||||
|
||||
; WaitForVBL (label is in constants.a)
|
||||
jmp WaitForVBL_iie ; SMC to RTS on a II+
|
||||
|
||||
|
@ -115,6 +115,7 @@ gValLen = $1F80
|
||||
gVal = $1F81
|
||||
|
||||
; LC RAM 1
|
||||
iLoadFileDirect = $FFEF
|
||||
WaitForVBL = $FFF2
|
||||
UnwaitForVBL = $FFF5
|
||||
|
||||
@ -145,16 +146,14 @@ SUPPORTS_SHR = %00110000
|
||||
CHEATS_ENABLED = %00001000
|
||||
|
||||
; shared symbols for prelaunch and effects to call ProRWTS2 functions
|
||||
iCurBlockLo = $D401
|
||||
iCurBlockHi = $D403
|
||||
iProDOS_enter = $D670
|
||||
LoadFileDirect = $DAD4
|
||||
launchpatch = $D60E
|
||||
iAddToPath = $FE67
|
||||
itraverse = $D8D8
|
||||
ldrhi = $56
|
||||
namlo = $57
|
||||
namhi = $58
|
||||
iCurBlockLo = $D401 ; constant
|
||||
iCurBlockHi = $D403 ; constant
|
||||
launchpatch = $D60E ; glue.launch.a
|
||||
iAddToPath = $FE64 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
||||
itraverse = $D8D8 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
||||
ldrhi = $56 ; constant
|
||||
namlo = $57 ; constant
|
||||
namhi = $58 ; constant
|
||||
|
||||
_CONSTANTS_=*
|
||||
}
|
||||
|
@ -11,14 +11,7 @@ LoadFileInternal
|
||||
ldx #0 ; 0 = read into main memory
|
||||
LoadFileAuxInternal
|
||||
+LDADDR gPathname
|
||||
!if RELBASE != $2000 {
|
||||
!ifdef PASS2 {
|
||||
} else { ;PASS2
|
||||
!if * != LoadFileDirect {
|
||||
!error "LoadFileDirect=",*, ", fix constants.a, rebuild all src/demo and src/prelaunch"
|
||||
}
|
||||
}
|
||||
}
|
||||
LoadFileDirect
|
||||
+ST16 namlo ; set filename
|
||||
txa
|
||||
pha
|
||||
|
@ -398,7 +398,7 @@
|
||||
pha
|
||||
ldx #0 ; read to main memory
|
||||
+LDADDR .filepath
|
||||
jsr LoadFileDirect
|
||||
jsr iLoadFileDirect
|
||||
pla
|
||||
sta iCurBlockHi
|
||||
pla
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2020 by qkumba
|
||||
;(c) 2020-2021 by qkumba
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH/BEJEWELED",plain
|
||||
@ -28,7 +28,7 @@ helper
|
||||
dec $8DB5 ; write address (low)
|
||||
|
||||
nohelp
|
||||
jmp iProDOS_enter
|
||||
jmp $FDFD ; SMC
|
||||
|
||||
nocall
|
||||
plp
|
||||
@ -39,6 +39,10 @@ nocall
|
||||
|
||||
callback
|
||||
jsr $BE00
|
||||
lda $BF0B
|
||||
sta nohelp + 1
|
||||
lda $BF0C
|
||||
sta nohelp + 2
|
||||
lda #<helper
|
||||
sta $BF0B
|
||||
lda #>helper
|
||||
|
@ -18,14 +18,6 @@
|
||||
ipacket = first_zp ;word
|
||||
buffer = first_zp+2 ;word
|
||||
|
||||
!if RELBASE != $2000 {
|
||||
!ifdef PASS2 {
|
||||
} else { ;PASS2
|
||||
!if * != iProDOS_enter {
|
||||
!error "iProDOS_enter=",*, ", fix constants.a"
|
||||
}
|
||||
}
|
||||
}
|
||||
ProDOS_enter
|
||||
!set CloseHandles = @imp_close
|
||||
stx ProDOS_savedX+1
|
||||
@ -401,7 +393,7 @@ resetval=$f0
|
||||
!ifdef PASS2 {
|
||||
} else { ;PASS2
|
||||
!if * != itraverse {
|
||||
!error "itraverse=",*, ", fix constants.a"
|
||||
!error "itraverse=",*, ", fix constants.a, rebuild prelaunch"
|
||||
}
|
||||
}
|
||||
traverse
|
||||
|
@ -28,7 +28,7 @@ kRootDirectory=*+1
|
||||
!ifdef PASS2 {
|
||||
} else { ;PASS2
|
||||
!if * != iAddToPath {
|
||||
!error "iAddToPath=",*, ", fix constants.a"
|
||||
!error "iAddToPath=",*, ", fix constants.a, rebuild prelaunch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user