home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
STFORMAT
/
STF04.MSA
/
2ND_SIDE_GFADEMOS_ADD.LST
< prev
next >
Wrap
File List
|
1989-09-27
|
1KB
|
28 lines
' ******************************************************************
' * *
' * ADD.LST *
' * *
' * Written for ST FORMAT MAGAZINE *
' * *
' * This program will run in GFA Basic V2 or V3 *
' * *
' * *
' ******************************************************************
'
' DEMO of how to call a machine code program
' the binary file ADD.BIN is on the disk
'
Dim A%(12/4)! space for the machine code (all of 12 bytes!)
'
Bload "add.bin",Varptr(A%(0)) ! load the file
'
Mc%=Varptr(A%(0)) ! get start address of the machine code
'
S=C:Mc%(L:3,L:8)! do the call, passing two numbers to be added
'
' 3 will be added to 8. You could call with variables if you wish
' the result is returned in S
'
'
Print S