1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-30 23:50:04 +00:00
C02/doc/notes.txt

55 lines
983 B
Plaintext
Raw Normal View History

2018-01-28 19:00:23 +00:00
Keywords:
break complete
case unimplemented
char incomplete
const unimplemented
continue complete
default unimplemented
do incomplete - break/continue don't work
else complete
for complete
goto complete
if complete
return untested
switch unimplemented
void incomplete
while complete
Features:
comparisons variable type checking not implemented
functions definition incomplete
Conditional Operator Bit-Mask
Character
= 1
< 2
> 4
Comparator Complement
== 1 6 <>
< 2 5 >=
<= 3 4 >
> 4 3 <=
>= 5 2 <
<> 6 1 ==
XOR 7 Reverses Operator!!!
Block Sort Algorithm
;blkptr = blkbgn
;while blkptr < blkend
; dst = blkptr
; src = blkptr
; while dst += seglen < blkend
; if *dst < *src
; src = dst
; if src <> blkptr
; *m = *src
; *src = *blkptr
; *blkptr = *m
; blkptr += seglen