1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-01 16:04:59 +00:00
C02/doc/notes.txt
2018-01-28 14:00:23 -05:00

55 lines
983 B
Plaintext

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