Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ce/atomic_load_32.src
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _atomic_load_32:
; getting caught in an endless loop of the value changing between reads with a
; fixed period equal to the amount of time it takes for each retry
inc c
ld b,c
ld b, c
.L.wait:
djnz .L.wait
; Read the value twice.
Expand Down
8 changes: 4 additions & 4 deletions src/ce/debug.src
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

_dbg_Debugger:
scf
sbc hl,hl
ld (hl),2
sbc hl, hl
ld (hl), 2
ret

.section .text._dbg_WatchpointSet
.section .text._dbg_WatchpointSet
.global _dbg_WatchpointSet
.type _dbg_WatchpointSet, @function

Expand Down Expand Up @@ -46,7 +46,7 @@ _dbg_WatchpointSet:
ld (hl), 3
ret

.section .text._dbg_WatchpointRemoveAll
.section .text._dbg_WatchpointRemoveAll
.global _dbg_WatchpointRemoveAll
.type _dbg_WatchpointRemoveAll, @function

Expand Down
2 changes: 1 addition & 1 deletion src/ce/eval.src
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ _os_Eval:
call $20F30 ; stoans
call $2079C ; pop error handler
xor a, a
.L_os_Eval.error:
.L_os_Eval.error:
pop de
push af
call $20E80 ; fixtempcnt
Expand Down
2 changes: 1 addition & 1 deletion src/ce/getstringinput.src
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ _os_GetStringInput:
sbc hl, bc ; decrement and compare to buf start
add hl, bc
jr nz, .L.clear_loop
ex de,hl
ex de, hl
ld (ti.curRow), hl
jp .L.start

Expand Down
2 changes: 1 addition & 1 deletion src/ce/random.src
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ __setstate:
.section .data
.local __state
__state:
.d32 0d0e0f10h,090a0b0ch,05060708h,01020304h
.d32 0d0e0f10h,090a0b0ch,05060708h,01020304h
10 changes: 5 additions & 5 deletions src/ce/runprgm.src
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ _os_RunPrgm:
; relocated functions
; ---------------------------------------------------------------

.section .runprgm.reloc, "awx", @progbits
.section .runprgm.reloc, "awx", @progbits
launch_asm_prgm:
call delete_running_prgm
call setup_prgm_state
Expand Down Expand Up @@ -249,7 +249,7 @@ setup_temp_parser_hook:
jr nz, .L.chain_hook
.L.no_chain:
ld hl, stub.chain
ld (hl), 0xAF ; xor a,a
ld (hl), 0xAF ; xor a, a
inc hl
ld (hl), 0xC9 ; ret
ret
Expand Down Expand Up @@ -312,7 +312,7 @@ push_stub:
ld hl, 0
.equ push_stub.prev_sp, $-3
push hl
ld hl,0
ld hl, 0
.equ push_stub.data_size, $-3
push hl
ld hl, 0
Expand Down Expand Up @@ -412,7 +412,7 @@ stub.hook_parser:
jp z, ti.JError
ld a, 2
stub.chain:
jp 0 ; xor a,a \ ret if not chaining
jp 0 ; xor a, a \ ret if not chaining
.L.found:
call ti.ChkInRam
ex de, hl
Expand All @@ -430,7 +430,7 @@ stub.chain:
ld bc, (ti.asm_prgm_size)
ld de, ti.userMem
ldir
ld de,0
ld de, 0
.equ stub.callback, $-3
pop bc ; data size
pop hl ; data
Expand Down
4 changes: 2 additions & 2 deletions src/ce/sleep_common.src
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.assume adl=1
.assume adl=1
.section .text
.global ___sleep_common
.type ___sleep_common, @function
Expand Down Expand Up @@ -40,7 +40,7 @@ ___sleep_common.3:
ld a, e ; auhl = now
pop de
pop bc ; dubc = end
; or a, a
; or a, a
sbc hl, bc
sbc a, e ; auhl = now - end
; ^ 48 cc
Expand Down
2 changes: 1 addition & 1 deletion src/ce/zx0.src
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dzx0t_elias_loop:
add a, a
jr nc, dzx0t_elias_loop
ret nz
ld a, (hl) ; load another group of 8 bits
ld a, (hl) ; load another group of 8 bits
inc hl
rla
jr nc, dzx0t_elias_loop
Expand Down
22 changes: 11 additions & 11 deletions src/crt/bbitrev.src
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@

__bbitrev:
push bc
ld b,a ; b=ABCDEFGH
rrca ; a=HABCDEFG
rrca ; a=GHABCDEF
ld b,a ; b=ABCDEFGH
rrca ; a=HABCDEFG
rrca ; a=GHABCDEF
xor a,b
and a,$aa
xor a,b ; a=GBADCFEH
ld b,a ; b=GBADCFEH
rrca ; a=HGBADCFE
rrca ; a=EHGBADCF
rrca ; a=FEHGBADC
rrca ; a=CFEHGBAD
xor a,b ; a=GBADCFEH
ld b,a ; b=GBADCFEH
rrca ; a=HGBADCFE
rrca ; a=EHGBADCF
rrca ; a=FEHGBADC
rrca ; a=CFEHGBAD
xor a,b
and a,$66
xor a,b ; a=GFEDCBAH
rrca ; a=HGFEDCBA
xor a,b ; a=GFEDCBAH
rrca ; a=HGFEDCBA
pop bc
ret
22 changes: 11 additions & 11 deletions src/crt/crt.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

.section .init.weak_crt,"ax",@progbits

; hacks to get the icon and description to be included,
; since the real crt overrides the weak
; hacks to get the icon and description to be included,
; since the real crt overrides the weak

.weak __start
.weak __start
__start:
ld hl, ___description
ld hl, ___icon
ld hl, _main
ld hl, ___main_argc_argv
ld hl, ___description
ld hl, ___icon
ld hl, _main
ld hl, ___main_argc_argv

.extern ___main_argc_argv
.extern _main
.extern ___icon
.extern ___description
.extern ___main_argc_argv
.extern _main
.extern ___icon
.extern ___description
18 changes: 9 additions & 9 deletions src/crt/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ __start:
call ti.ResetStacks
ld bc, ___data_len
or a, a
sbc hl, hl
adc hl, bc
sbc hl, hl
adc hl, bc
jr z, .L.skip_data_copy
ld hl, ___data_lma
ld de, ___data_vma
Expand All @@ -82,9 +82,9 @@ __start:
ld de, (ti.asm_prgm_size)
ld hl, ti.userMem
call ti.DelMem
or a,a
sbc hl,hl
ld (ti.asm_prgm_size),hl
or a, a
sbc hl, hl
ld (ti.asm_prgm_size), hl
ld hl, ti.pixelShadow
ld bc, 8400 * 3
call ti.MemClear
Expand Down Expand Up @@ -155,7 +155,7 @@ __start:
call ti.HomeUp
ld hl, __missingappvar
call ti.PutS
call ti.NewLine
call ti.NewLine
ld hl, __webaddress
call ti.PutS
jp ti.GetKey
Expand Down Expand Up @@ -212,7 +212,7 @@ ___libload_libs_ret:
ld hl, ti.OP1 + 1
call ti.Mov8b
ld a, d ; Lspace
ld (de),a
ld (de), a
inc de
push de
call ti.AnsName
Expand Down Expand Up @@ -305,7 +305,7 @@ ___libload_libs_ret:
jr .L.init_array_start
.L.init_array_loop:
push hl
ld hl, (hl)
ld hl, (hl)
call __indcallhl
pop hl
inc hl
Expand Down Expand Up @@ -370,7 +370,7 @@ _exit:
dec hl
dec hl
push hl
ld hl, (hl)
ld hl, (hl)
call __indcallhl
pop hl
.L.fini_array_start:
Expand Down
2 changes: 1 addition & 1 deletion src/crt/daddsub.src
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __daddsub:
push de
push hl ; pass x by value

xor a, (iy + 7)
xor a, (iy + 7)
rla

jr nc, .L.__daddmags ; same signs
Expand Down
26 changes: 13 additions & 13 deletions src/crt/drem.src
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@

; float64_t f64_rem(bool, float64_t, const float64_t*)
__drem:
push af
push iy
push af
push iy
ld iy, 9
add iy, sp
push iy
push bc
push de
push hl
push iy
push bc
push de
push hl

rl b
push af ; Carry = signbit(x)

call ___f64_rem

pop af
pop af
pop af
pop af
pop af
pop iy
pop af ; restore
pop af
pop af
pop af
pop af
pop af
pop iy
pop af ; restore
ret

.extern ___f64_rem
6 changes: 3 additions & 3 deletions src/crt/fpneg.src
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
;--------------------------------------------------------------
;
; Code Generation Helper
; Code Generation Helper
; For the Zilog eZ80 C Compiler
; Copyright 1992-2008 Zilog, Inc.
; Copyright 1992-2008 Zilog, Inc.
;
;--------------------------------------------------------------
;--------------------------------------------------------------
;
; IEEE Negate.
; IEEE Negate.
;
; INPUTS:
; AuBC: 32-bit IEEE Single Precision.
Expand Down
2 changes: 1 addition & 1 deletion src/crt/fpupop2.src
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.type __fpupop2, @function

__fpupop2:
push bc
push bc
ld bc, 0800000h
add hl, bc
jr nc, .ncarry
Expand Down
24 changes: 12 additions & 12 deletions src/crt/frem.src
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@

; wraps _fmodf
__frem:
push iy
push de
push hl
push iy
push de
push hl

push de
push hl ; y
push de
push hl ; y
ld e, a
push de ; x_hi8
push bc ; x_lo24
call _fmodf
pop bc
pop bc
pop bc
pop bc
pop bc
pop bc
pop bc
pop bc

ld a, e
ex (sp), hl
pop bc
pop de
pop iy
pop bc
pop de
pop iy
ret

.extern _fmodf
10 changes: 5 additions & 5 deletions src/crt/frimuls.src
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ _L1:
ex de,hl
call __frimulu
push hl
ex de,hl
ex de,hl
ld hl,2
add hl,sp
rr (hl)
rr (hl)
rr d
rr e
pop hl
ld h,d
ld l,e
pop hl
ld h,d
ld l,e
;;
;; Check signs
;;
Expand Down
2 changes: 1 addition & 1 deletion src/crt/ftod.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.section .text

.global __ftod
.global __ftod
.type __ftod, @function

; input E:UHL (float)
Expand Down
Loading
Loading