a working internet modem that only reads

This commit is contained in:
minjaesong
2022-09-22 16:26:04 +09:00
parent cab2699794
commit e905b3ace8
16 changed files with 367 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
let f = files.open("RND")
let mlen = 512
let m = sys.malloc(mlen)
println(f.driverID)
println(`Ptr: ${m}`)
f.pread(m, mlen, 0)
f.close()
for (let i = 0; i < mlen; i++) {
print(sys.peek(m+i).toString(16).padStart(2,'0'))
print(' ')
}
println()
sys.free(m)