Welcome to the Parallax Discussion Forums, sign-up to participate.
if_e setq #len1-1 if_ne setq #len2-1 rdlong cog0,hubptr
Cluso99 wrote: » ... will the new setting overwrite the previous?
if_e altd zero,#len1-1 setq #len2-1 rdlong cog0,hubptr
if_ne mov reply, #cog_len-1 ' set to copy whole cog (496 longs) if_e mov reply, #cog_len80-1 ' set to copy 512 bytes (128 longs) setq reply ' length -1 rdlong cog_start0, _hubdata ' copy loaded code into cog if_ne jmp #$0 ' NZ: execute loaded cog code jmp #$020 ' Z: execute loaded cog code from $080+
Comments
So no non-executed instructions can intervene.