Moving PHY code to BANK1

This commit is contained in:
logicog
2025-06-25 15:30:50 +02:00
parent 73a0a7d137
commit 5faf31cdb8
10 changed files with 356 additions and 302 deletions
+16
View File
@@ -39,3 +39,19 @@ __sdcc_gsinit_startup::
.area GSFINAL (CODE)
ljmp _bootloader
__sdcc_banked_call::
push _PSBANK
xch a,r0
push a
mov a,r1
push a
mov a,r2
anl a,#0x1f
mov _PSBANK, a
xch a, r0
ret
__sdcc_banked_ret::
pop _PSBANK
ret