gpu: reading existence of other banks using mmio

This commit is contained in:
minjaesong
2022-04-14 14:08:03 +09:00
parent 4a02198d79
commit b46c1d6f01
4 changed files with 11 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ graphics.setFramebufferScroll(0,-((1.0-tdiff/tlen)*164)|0);}
// show how much ram is there
con.color_pair(239,14);
let vramstr="VIDEO RAM : 256 Kbytes";
let vramstr=`VIDEO RAM : ${256 * sys.peek(-131084)} Kbytes`;
let uramstr=` USER RAM : ${system.maxmem()>>>10} Kbytes`;
con.move(20,(80-vramstr.length)/2);println(vramstr);
con.move(21,(80-uramstr.length)/2);println(uramstr);