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
IM 2
#38
na_th_an Wrote:I do: the ISR saves all the register pairs. Check the code and see Wink

But that's not the problem. The problem occurs with bank switching. Just with bank switching, even if I don't enable my ISR or even don't enable IM2, any bank switching messes subsequent PRINT calls. Minimal case scenario:

Code:
' Test Asm ; Permorm some dummy paging di ld a, 5 ld bc, $7ffd out (c), a ; now RAM 5 is in. xor a ld bc, $7ffd out (c), a ld ($5b5c), a ei ; back to normal End Asm Print "HOLA";
Compile and run this in either 128 BASIC or USR 0 mode. You won't see "HOLA" on screen, but a bunch of trash.
After thinking it twice I've just realized print uses ROM Font, as pointed in PEEK(Uinteger, 23606) + 256. This default value should be 15360 + 256, which is the default FONT Charset which lays in ROM. Put this font in another location and update this variable accordingly, and the print routine will work OK ;-)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)