OS_Memory 0 logical to physical
Jon Abbott (1421) 2651 posts |
I know it doesn’t support IO memory, which is a right pain, but should it currently support VRAM? On IOMD with VRAM, converting the logical DA2 address to physical should return &2000000 but instead it returns 0, this seems to be the case right back to when OS_Memory was added. Is this correct? Shouldn’t it return the VRAM base address or is VRAM classed as IO memory? |
Jeffrey Lee (213) 6048 posts |
Works fine for me on 3.7 and 5.x SYS "OS_ReadDynamicArea",2 TO A DIM B% 12 B%!4=A SYS "OS_Memory",0+(1<<9)+(1<<13),B%,1 PRINT ~(B%!8) |
Jon Abbott (1421) 2651 posts |
I fess up…I was misreading the PRM and converting to pages instead of physical. Sorry for wasting your time. |
Jeffrey Lee (213) 6048 posts |
No problem! |