#152 Multi BANK Managing for Z80

open
nobody
z80 port (30)
5
2008-12-27
2006-06-26
Anonymous
No

Something where you can tell, for example:

; We have 4 pages inside ROM area
; and 256 extra banks
CODE_START = 0x4000
CODE_END = 0xBFFF
; We have 1 page inside RAM area
; and 256 extra banks
DATA_START = 0xC000
DATA_END = 0xF000
CODE_BANK_SIZE = 0x2000
DATA_BANK_SIZE = 0x4000

And you should define a functions like:

void ChangeCodeBank (u_char page, u_char bank)
{
}

void ChangeDataBank (u_char page, u_char bank)
{
}

Discussion

  • Philipp Klaus Krause

    • labels: --> z80 port
     
  • Philipp Klaus Krause

    For the RAM area, the implementation of named address spaces (currently living in a branch, to be merged after the 3.1.0 release) will implement this.

    Philipp

     

Log in to post a comment.