Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Machine-code/BBC-BASIC/machine-code.basic
Normal file
18
Task/Machine-code/BBC-BASIC/machine-code.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
REM Claim 9 bytes of memory
|
||||
SYS "GlobalAlloc",0,9 TO code%
|
||||
|
||||
REM Poke machine code into it
|
||||
P%=code%
|
||||
[OPT 0
|
||||
mov EAX, [ESP+4]
|
||||
add EAX, [ESP+8]
|
||||
ret
|
||||
]
|
||||
|
||||
REM Run code
|
||||
SYS code%,7,12 TO result%
|
||||
PRINT result%
|
||||
|
||||
REM Free memory
|
||||
SYS "GlobalFree",code%
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue