LAX PLEASE... :(
This commit is contained in:
parent
334518d6b6
commit
f3125cb4c5
2
FSHa.asm
2
FSHa.asm
|
|
@ -15,7 +15,7 @@ Setup:
|
||||||
|
|
||||||
CALL fshvarreset
|
CALL fshvarreset
|
||||||
|
|
||||||
;call prgminstallload
|
call prgminstallload
|
||||||
|
|
||||||
CALL drawstatusbar
|
CALL drawstatusbar
|
||||||
|
|
||||||
|
|
|
||||||
BIN
bin/FSHa.8xp
BIN
bin/FSHa.8xp
Binary file not shown.
7857
bin/FSHa.lst
7857
bin/FSHa.lst
File diff suppressed because it is too large
Load Diff
|
|
@ -7,6 +7,6 @@ prgmcmdPRGMf:
|
||||||
ld hl, prgmcmdPRGMSprgm
|
ld hl, prgmcmdPRGMSprgm
|
||||||
call _Mov9ToOP1
|
call _Mov9ToOP1
|
||||||
|
|
||||||
call prgmasm
|
jp prgmasm
|
||||||
|
|
||||||
prgmcmdPRGMSprgm: .db ProgObj, "CHAR", 0
|
prgmcmdPRGMSprgm: .db ProgObj, "CHAR", 0
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
prgmcmddecode:
|
prgmcmddecode:
|
||||||
;decodecmdopt(prgmcmdPRGM, prgmcmdPRGMo)
|
decodecmdopt(prgmcmdPRGM, prgmcmdPRGMo)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
prgmcmdroute:
|
prgmcmdroute:
|
||||||
pop bc
|
pop bc
|
||||||
;routeoptjp(prgmcmdPRGMo, prgmcmdPRGMf)
|
routeoptjp(prgmcmdPRGMo, prgmcmdPRGMf)
|
||||||
push bc
|
push bc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
prgmcmdmanroute:
|
prgmcmdmanroute:
|
||||||
pop bc
|
pop bc
|
||||||
;routestrjp(prgmcmdPRGM, prgmcmdPRGMm)
|
routestrjp(prgmcmdPRGM, prgmcmdPRGMm)
|
||||||
push bc
|
push bc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
prgmcmdmanrouteu:
|
prgmcmdmanrouteu:
|
||||||
pop bc
|
pop bc
|
||||||
;routeustrjp(prgmcmdPRGM, prgmcmdPRGMu)
|
routeustrjp(prgmcmdPRGM, prgmcmdPRGMu)
|
||||||
push bc
|
push bc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
#define prgmmovsize prgmmov_end - prgmmov_end
|
#define prgmmovsize prgmmov_end - prgmmov_start
|
||||||
|
|
||||||
prgmbasic:
|
prgmbasic:
|
||||||
|
|
||||||
prgmasm:
|
prgmasm:
|
||||||
call _ClrTxtShdw
|
|
||||||
call _HomeUp
|
call _HomeUp
|
||||||
call _RunIndicOn
|
call _RunIndicOn
|
||||||
call _APDSetup
|
call _APDSetup
|
||||||
|
|
@ -11,16 +10,16 @@ prgmasm:
|
||||||
jp prgmloader
|
jp prgmloader
|
||||||
|
|
||||||
prgminstallload:
|
prgminstallload:
|
||||||
ld hl, prgmmov_start
|
ld hl, prgmloader_start
|
||||||
ld de, SafeSScreen
|
ld de, SafeSScreen
|
||||||
ld bc, prgmmovsize
|
ld bc, prgmmovsize
|
||||||
ldir
|
ldir
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
prgmloader_start:
|
||||||
|
relocate(SafeSScreen)
|
||||||
|
|
||||||
prgmmov_start:
|
prgmmov_start:
|
||||||
|
|
||||||
.org SafeSScreen
|
|
||||||
|
|
||||||
prgmmov:
|
prgmmov:
|
||||||
|
|
||||||
prgmloader:
|
prgmloader:
|
||||||
|
|
@ -34,13 +33,15 @@ prgmloader:
|
||||||
;call NamePtrToOP1
|
;call NamePtrToOP1
|
||||||
;bit isBasic,(iy+pgrmStatus)
|
;bit isBasic,(iy+pgrmStatus)
|
||||||
;jp nz,RunBasicProgram
|
;jp nz,RunBasicProgram
|
||||||
|
ld a, 's'
|
||||||
|
call _PutC
|
||||||
call prgm_to_usermem; the program is now stored at userMem -- Now we need to check and see what kind of file it is - C or assembly
|
call prgm_to_usermem; the program is now stored at userMem -- Now we need to check and see what kind of file it is - C or assembly
|
||||||
push hl
|
push hl
|
||||||
ld hl, prgmunloader
|
ld hl, prgmunloader
|
||||||
call _PushErrorHandler
|
call _PushErrorHandler
|
||||||
ld de, prgmunloader
|
ld hl, prgmunloader
|
||||||
push de
|
push hl
|
||||||
jp UserMem ; simply call userMem to execute the program
|
jp userMem ; simply call userMem to execute the program
|
||||||
|
|
||||||
RunBasicProgram:
|
RunBasicProgram:
|
||||||
call _RunIndicOn
|
call _RunIndicOn
|
||||||
|
|
@ -136,10 +137,6 @@ DeleteTempProgramGetName:
|
||||||
jp _PopOP1
|
jp _PopOP1
|
||||||
|
|
||||||
tmpPrgmName: .db tempProgObj,"ZTGP",0
|
tmpPrgmName: .db tempProgObj,"ZTGP",0
|
||||||
|
|
||||||
prgmFsh: .db ProgObj, "FSHA", 0
|
prgmFsh: .db ProgObj, "FSHA", 0
|
||||||
|
|
||||||
prgmmov_end:
|
prgmmov_end:
|
||||||
|
endrelocate()
|
||||||
.org prgmmov_start
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
#include "includes/macros/misc.asm"
|
#include "includes/macros/misc.asm"
|
||||||
#include "includes/macros/pixel.asm"
|
#include "includes/macros/pixel.asm"
|
||||||
#include "includes/macros/draw.asm"
|
#include "includes/macros/draw.asm"
|
||||||
|
#include "includes/macros/relocate.asm"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
#macro relocate(new_location)
|
||||||
|
#ifdef old_location
|
||||||
|
.echo "Mateo(or Pixiys): ",__file,":",__line,": Error: You cannot nest relocated blocks."
|
||||||
|
#else
|
||||||
|
#define old_location eval($)
|
||||||
|
.org new_location
|
||||||
|
#define g_location eval(new_location)
|
||||||
|
#endif
|
||||||
|
#endmacro
|
||||||
|
|
||||||
|
#macro endrelocate()
|
||||||
|
#ifdef g_location
|
||||||
|
.org $-g_location + old_location
|
||||||
|
#undefine g_location
|
||||||
|
#undefine old_location
|
||||||
|
#else
|
||||||
|
.echo "Error line ",__line,": No relocate statements corresponds to this endrelocate."
|
||||||
|
#endif
|
||||||
|
#endmacro
|
||||||
Loading…
Reference in New Issue