Re: Try/Catch
- Posted by Ekhnat0n Feb 11, 2015
- 4661 views
Here is how I would program Try/Catch:
if err
> get errno
> set errno-flag
> on errno do
>> err-handling(errno)
>>reset this-errno-flag
>>errno+1
>> while err-flag-field
endif
that's all and treats all errors in numeric flag-order.
err-flag-field should be a bit-variable for saving space
the asm commands
bset
bclr
bchg
are among the fastest you can find
ekhnaton's solution so to say
logic applied all over