Ashbad, I still have a more pessimistic view of it, especially in terms of size: I think that the programs it generates are huge compared to those written by even a mediocre ASM coder (a necessary tradeoff for speed in machine-generated code without a complex optimizer), but I respect your respect for it.
Code:
calcman wrote:
Could someone give me an example to make an appvar/store to it/recall information?
Thanks
Gladly.
Thanks
Code:
;--- Store 8 bytes in an appvar ---
ld hl,MyAppvarName
rst 20h ;copy name to Op1
bcall(_ChkFindSym)
jr nc,AppvarExists
ld hl,8 ;we want 8 bytes of space
bcall(_CreateAppVar)
AppvarExists:
inc de
inc de
ld hl,DataToLoad ;pointer to data to save
ld bc,8 ;size of data to load
ldir ;copy it in!
;--- Recall 8 bytes from an appvar ---
ld hl,MyAppvarName
rst 20h ;copy name to Op1
bcall(_ChkFindSym)
jr c,AppvarDoesNotExist ;define what happens here yourself
inc de
inc de
ld hl,DataDestination
ex de,hl
ld bc,8
ldir ;copy from appvar to memory
AppvarName:
.db 15h,"AVNAME",0