diff --git a/FSHa.asm b/FSHa.asm index 07010e9..5e23f86 100644 --- a/FSHa.asm +++ b/FSHa.asm @@ -9,7 +9,7 @@ Setup: CALL _homeup CALL _ClrLCDFull - LD HL, $00 + LD HL, 0 CALL fshvarfill diff --git a/bin/FSHa.8xp b/bin/FSHa.8xp index 9a96b84..d815cde 100644 Binary files a/bin/FSHa.8xp and b/bin/FSHa.8xp differ diff --git a/includes/FshCmd.asm b/includes/FshCmd.asm index 732e2a0..0593301 100644 --- a/includes/FshCmd.asm +++ b/includes/FshCmd.asm @@ -89,7 +89,7 @@ fshcmdfillLoop: inc b inc de ld a, b - cp FshCmdSize / 2 + cp FshCmdSize jr c, fshcmdfillLoop pop de pop bc diff --git a/includes/commands/VARS.asm b/includes/commands/VARS.asm index 8ff01c3..7f1afe5 100644 --- a/includes/commands/VARS.asm +++ b/includes/commands/VARS.asm @@ -3,6 +3,7 @@ fshcmdVARSo: .db $12 fshcmdVARSu: .db "Displays all Fsh Vars", 0 fshcmdVARSf: ld b, 0 + ld c, 0 ld de, 0 fshcmdVARSfLoop: call fshvarget @@ -10,12 +11,26 @@ fshcmdVARSfLoop: call _PutC ld a, l call _PutC + ld a, c + inc c + cp 7 + jr nz, fshcmdVARSfLoopU + push hl + push bc + push de + call _NewLine + pop de + pop bc + pop hl + ld c, 0 + jr fshcmdVARSfLoopBack +fshcmdVARSfLoopU: ld a, '_' call _PutC +fshcmdVARSfLoopBack: inc b inc de ld a, b cp FshVarsSize / 2 jr c, fshcmdVARSfLoop - call _NewLine jp Fin