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. :)

P#101673 2021-12-06 23:08 ( Edited 2021-12-07 03:51)

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)

P#101742 2021-12-07 01:04 ( Edited 2021-12-07 01:06)
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.

P#101820 2021-12-07 02:57
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.

P#101835 2021-12-07 03:49 ( Edited 2021-12-07 03:52)

+1 for this.

P#101855 2021-12-07 10:38

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 12:39:54 | 0.019s | Q:16