The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to put zxbasic code in memory banks
#1
Hi all

I'm testing and expanding this code (without the CLEAR command) from a post from speccy.org forum in order to test memory bank paging:
Code:
10 CLEAR 49151 20 POKE 23388,16: OUT 32765,16: POKE 50000,1 30 POKE 23388,17: OUT 32765,17: POKE 50000,2 40 POKE 23388,19: OUT 32765,19: POKE 50000,3 50 POKE 23388,20: OUT 32765,20: POKE 50000,4 60 POKE 23388,22: OUT 32765,22: POKE 50000,5 70 POKE 23388,16: OUT 32765,16: PRINT PEEK 50000 75 POKE 23388,17: OUT 32765,17: PRINT PEEK 50000 80 POKE 23388,19: OUT 32765,19: PRINT PEEK 50000 85 POKE 23388,20: OUT 32765,20: PRINT PEEK 50000 90 POKE 23388,22: OUT 32765,22: PRINT PEEK 50000

Poking&Peeking memory addresses are working ok, but I'd like to know is there is a way to "put" zxbasic code in the memory bank I want to and, if yes, how I can achieve it.

Thanks and regards
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)