mods in Tokenize:
at the start:
' ASCIIZ PTR addrptr
' @addrptr = (STRPTR(sourceinput))
sys addrptr=STRPTR(sourceinput)
push ebx
mov edi, w
mov esi, addrptr
at the end:
storekeyword:
inc edi
mov a, esi
mov c, cl
mov l, edx
mov w, edi
mov k, ah
pop ebx
mbox "ok1"
¤UDT_SETV(dictionary, dictionary.m(w), (0), DWORD, (a), 4)
¤UDT_SETV(dictionary, dictionary.m(w), (4), INTEGER, (l), 2)
¤UDT_SETV(dictionary, dictionary.m(w), (6), BYTE, ¤BytOvf(k), 1)
¤PRINTSTR("=================", 1)
¤PRINTSTR(STR$(w, null), 1)
¤PRINTSTR(STR$(a, null), 1)
¤PRINTSTR(STR$(c, null), 1)
¤PRINTSTR(STR$(l, null), 1)
¤PRINTSTR(STR$(k, null), 1)
' jmp checknext
'can't get here with that jump
mbox "ok2"
RETURN ¤RETVAL
END FUNCTION