Hi
the original 128 has in ROM 0
Code: Select all
; ========================
; PAGING ROUTINES - PART 1
; ========================
; ---------------------
; Page Logical RAM Bank
; ---------------------
; This routine converts between logical and physical RAM banks and pages the
; selected bank in.
; Entry: A=Logical RAM bank.
L1C64: PUSH HL ; Save BC and HL.
PUSH BC ;
LD HL,L1C81 ; Physical banks used by RAM disk.
LD B,$00 ;
LD C,A ; BC=Logical RAM bank.
ADD HL,BC ; Point to table entry.
LD C,(HL) ; Look up physical page.
DI ; Disable interrupts whilst paging.
LD A,(BANK_M) ; $5B5C. Fetch the current configuration.
AND $F8 ; Mask off current RAM bank.
OR C ; Include new RAM bank.
LD (BANK_M),A ; $5B5C. Store the new configuration.
LD BC,$7FFD ;
OUT (C),A ; Perform the page.
EI ; Re-enable interrupts.
POP BC ; Restore BC and HL.
POP HL ;
RET ;
; -------------------------------
; Physical RAM Bank Mapping Table
; -------------------------------
L1C81: DEFB $01 ; Logical bank $00.
DEFB $03 ; Logical bank $01.
DEFB $04 ; Logical bank $02.
DEFB $06 ; Logical bank $03.
DEFB $07 ; Logical bank $04.
DEFB $00 ; Logical bank $05.
you can find it on fruitcake aswell under the first 128 link. i will look to the other configs aswell.
the table at L1C81 is what my proposed definition is refering to. hence my question, what is a "page" and what is a "bank"
the logical bank has to be defined beside the fysical bank.
You refer to the fysical bank purely.
as definition it seems logical to have continues pages from 0 to 5 and those pages all have their own fysic place called rambanks, with their own reference number.
i hope i see it correct. Looking for definition first check the use:
BUT, the above ASm uses both term totaly trouugh each other
-Page Logical RAM Bank , the title.
-between logical and physical RAM banks and pages
-A=Logical RAM bank
-Physical banks
-BC=Logical RAM bank
-physical page.
-whilst paging
-current RAM bank
-Perform the page
- Physical RAM Bank Mapping Table
- DEFB $01 ; Logical bank $00.
there is no difference in above part so:
i state we need a clear definition and i PROPOSE
Fysic = BANK 1 3 4 6 7 0
Logic = PAGE 0 1 2 3 4 5
+3 has more banks?? or more ROMS ?