Log In  


I'm hoping I am just not understanding the code rather than there is a problem here with the new ability to redirect drawing memory positions.

cls()
poke(0x5f55,0x80)
for i=0,127 do
  for j=0,127 do
    pset(j,i,rnd()*16)
  end
end
poke(0x5f55,0x60)
memcpy(0x6000,0x8000,0x2000)

See HERE in BASE RAM Memory layout:

https://www.lexaloffle.com/dl/docs/pico-8_manual.html#Base_RAM_Memory_Layout

If it's not a problem in the language, then what am I doing wrong here ?

. . .

From the comments below it's clear I can only choose from 2-different memory locations. Maybe future Pico-8 will allow upper memory location to draw in. Just trying to find a use for that whopping extra 32768 bytes. :)

1


what do you expect this to do / what does it actually do?

the problem might be poke(0x5f55,0x80) - 0x80 is invalid afaik (0x60 (default) and 0x00 are the only valid values)


1

Going by what @pancelor is saying here, the drawing target must either be 0x6000 or 0x0000.

It'd be nice if drawing (and the sprite sheet) could be mapped to 0x8000 or higher, just ask @zep.


2

Owell ... I saw two memory locations and thought I could get clever and draw directly to upper memory. Maybe it's something for him to consider.

Thanks for the feedback @pancelor and @StinkerB06.

Closing this ticket.


+1 for this.



[Please log in to post a comment]