|
Post by held12345 on Feb 19, 2023 7:26:47 GMT -5
Hi good afternoon. i play with the liberty basic at 74 years old. how can you please bring in asm there? pass a value to asm , add and return? how are values passed and where to?
Thanks. greeting
|
|
|
Post by Rod on Feb 19, 2023 9:24:23 GMT -5
I have seen this done albeit for a very short coding example. It requires you to take complete control and allocate memory etc. I just can’t find the example.
Normally Liberty accesses helper .dlls so the rout to go would be to build a .dll with another tool.
But before we get that complicated tell us what you are trying to do. There may be native solutions. Welcome to the forum.
|
|
|
Post by held12345 on Feb 19, 2023 9:39:59 GMT -5
hello thanks for help , this bbc : ------------------------- MODE 1
DIM Deax 3 DIM code% 1024
FOR I% = 0 TO 2 STEP 2 P% = code% [ OPT I% .calculate mov eax,155 mov DWORD [Deax], eax ret ] NEXT I%
CLS CALL calculate PRINT "Value in eax ";!Deax END -------------------------
|
|
|
Post by Rod on Feb 19, 2023 10:32:21 GMT -5
Well that’s all very specific to BBC Basic. We won’t be able to run any of that code. But in more general terms, what is the task. Just an English description, forget code for now.
|
|
|
Post by colinmcm on Feb 19, 2023 10:46:51 GMT -5
this may not be helpful, but this code should run on Risc Os on a Raspberry pi. That is a whole new learning curve, but it can be fun in itself.
|
|