Menu

[b84aab]: / samples / peek_n_poke.bas  Maximize  Restore  History

Download this file

21 lines (17 with data), 267 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
'
' Low-level commands
'
' MALLOC(size)/BALLOC(size)
'
' PEEK[{16|32}](addr)
' POKE[{16|32}] addr, val
'
' ERASE var ' free(var)
'
' BCOPY source_addr, dest_addr, size ' memcpy
'
m=malloc(20)
? "Address = 0x";hex(vadr(m))
poke vadr(m),0x22
? peek(vadr(m))
erase m
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.