projects
/
vvhitespace
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Added stdlib_tests for memset and memcpy subroutines.
[vvhitespace]
/
examples
/
random-heap-dump
/
randomheap.pvvs
@@ Seed the RNG
SSSSN | PUSH 0 (ptr)
SSSTTSTTTTSTSTSTTSTTSTTTTTSTTTSTTTTN | PUSH Seed value
TTS | STORE
@@ Populate heap[18]-heap[29] with random values
SSSTSTTN | PUSH 11
SSSTSSTSN | PUSH 18
NSTTTSTSN | JSR > 11010 (memrand)
@@ Print heap[16]-heap[31]
SSSTTTTTN | PUSH 31
SSSTSSSSN | PUSH 16
NSTTTTSSSN | JSR > 111000 (dump heap)
NNN | DIE
#include <debug.pvvs>
#include <heap.pvvs>