From 04d6fc24a26ac00992b73417c3367414c34df70d Mon Sep 17 00:00:00 2001 From: Leo C Date: Fri, 12 Jun 2015 14:22:12 +0200 Subject: [PATCH] AVRCON --> USB0 --- cbios/Makefile | 2 +- cbios/chario.180 | 8 ++++---- cbios/move.180 | 12 +++--------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/cbios/Makefile b/cbios/Makefile index 7090dee..e24e41f 100644 --- a/cbios/Makefile +++ b/cbios/Makefile @@ -28,7 +28,7 @@ LN_QUIET = 1 #LNKCMD = LN_VERB = /V LN_PROG = 0 -LN_DATA = C000 +LN_DATA = F000 .suffixes: diff --git a/cbios/chario.180 b/cbios/chario.180 index 72748e4..c4c5be6 100644 --- a/cbios/chario.180 +++ b/cbios/chario.180 @@ -158,19 +158,19 @@ null$status: cseg @ctbl: - db 'AVRCON' ; device 0 + db 'USB0 ' ; device 0 db mb$in$out db baud$none - db 'ASCI0 ' ; device 1 + db 'ASCI0 ' ; device 1 db mb$in$out+mb$serial+mb$soft$baud db baud$19200 - db 'ASCI1 ' ; device 2 + db 'ASCI1 ' ; device 2 db mb$in$out+mb$serial+mb$soft$baud db baud$19200 - db 0 ; table terminator + db 0 ; table terminator end diff --git a/cbios/move.180 b/cbios/move.180 index 1e46c82..aac1840 100644 --- a/cbios/move.180 +++ b/cbios/move.180 @@ -49,16 +49,13 @@ inter_bank_move: ; source in HL, dest in DE, count in BC if 1 ; works with new memory map - push bc - push de - push hl - out0 (bcr0l),c ; setup DMA count out0 (bcr0h),b + push hl + push de ld a,(src$bnk) call bnk2phy - out0 (sar0l),l ; setup DMA src address out0 (sar0h),h out0 (sar0b),a @@ -66,7 +63,6 @@ inter_bank_move: ; source in HL, dest in DE, count in BC ex de,hl ld a,(dst$bnk) call bnk2phy - out0 (dar0l),l ; setup DMA dst address out0 (dar0h),h out0 (dar0b),a @@ -76,10 +72,8 @@ inter_bank_move: ; source in HL, dest in DE, count in BC ld a,M_DE0+M_NDWE1 ; enable DMA0 out0 (dstat),a ; move the block - pop hl pop de - pop bc - + pop hl add hl,bc ; src must point past end block ex de,hl add hl,bc ; and so must dst -- 2.39.2