Videopac / Odyssey2 forum
May 06, 2021, 03:42:10 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: If you have some news and you want it to be shown here, pm Janzl!
 
   Home   arcade Help Login Register links videopac.nl  
Pages: [1]   Go Down
  Print  
Author Topic: Instruction JMP after 2K (above 2K) Bank  (Read 1731 times)
Luciano
Played Munchkin once...
**
Posts: 96



« on: January 28, 2017, 01:45:40 PM »

Hello!

If anyone can inform me ...
For program with 8K rom, how do I jump to an address above 2K?
Example:

A=0000h (Begin)
.
.
.
A=0800h
.
.
.
A=1000h
.
.
... A=1500h Instruction: (E5 SEL MB0) + (84  E1  JMP 450) --> Jump to A=1050h
.           Instruction: (E5 SEL MB0) + (A4  E1  JMP 550) --> Jump to A=1150h
.           Instruction: (E5 SEL MB0) + (C4  E1  JMP 650) --> Jump to A=1250h
.           Instruction: (E5 SEL MB0) + (E4  E1  JMP 750) --> Jump to A=1350h
.           Instruction: (F5 SEL MB1) + (84  E1  JMP 450) --> Jump to A=1450h
.           Instruction: (F5 SEL MB1) + (A4  E1  JMP 550) --> Jump to A=1550h
.           Instruction: (F5 SEL MB1) + (C4  E1  JMP 650) --> Jump to A=1650h
.           Instruction: (F5 SEL MB1) + (E4  E1  JMP 750) --> Jump to A=1750h
.
.          
A=1800h
.
.
.
A=2000h (End)

But, now... A=1500h Instruction: (?) + (?) --> Jump to A=0850h ?

Thank you for your cooperation!
Logged
Rene_G7400
Moderator
I take the Videopac and leave the Canoli!
*****
Posts: 2519



WWW
« Reply #1 on: January 30, 2017, 01:56:40 PM »

It's not that simple. The processor can handle only 2k, so you have to make 4 separate 2k files. Then you'll need bank switching commands that set or reset P10 and/or P11 to jump between the 2k parts.
Check: http://web.archive.org/web/20130608030041/http://soeren.informationstheater.de/g7000/toc.html
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!