0 Members and 2 Guests are viewing this topic.
Start: ld hl,Str1Address rst 20h ;( B_Call Mov9ToOp1) rst 10h ;( B_Call ChkFindSym) ret c inc de ;skip size bytes inc de ex de,hl ld bc,8 ;copy up to 8 bytes of the string for program name ld de,stringName+1 ;store the program name at stringName+1 (so as not to overwrite ProgObj) ldir ld hl,stringName ;start of program name rst 20h ;put into OP1 ld hl,10 ;10 bytes of (random) data B_Call _CreateProg ret Str1Address:.db StrngObj, tVarStrng, 0stringName:.db ProgObj," "