diff --git a/_Docs/KERNEL.md b/_Docs/KERNEL.md index 82c6f52c..94c410a7 100644 --- a/_Docs/KERNEL.md +++ b/_Docs/KERNEL.md @@ -18,6 +18,40 @@ + Y,A = PStr To Arg[A] + CS : Out Of Bound +#PrintFYA : +Prints C-Style String + +##In: ++ Y,A = PTR to CStr + + %a : pull 2 bytes to Print Access right String 'drwxrwxrwx' + + %b : pull 1 byte to Print BIN + + %B : pull 2 bytes to Print BIN + + %d : pull 1 byte unsigned DEC 0..255 + + %D : pull 2 bytes unsigned DEC 0..65535 + + %u : pull 2 bytes PTR to 4 bytes long unsigned DEC 0..4294967295 + + %e : pull 2 bytes PTR to 6 Bytes Real +1.23456789e+12 + + %f : pull 2 bytes PTR to 6 Bytes Real 3.1415 + + %h : pull 1 byte to Print HEX + + %H : pull 2 bytes to Print HEX + + %i : pull 1 byte to Print signed DEC -128..127 + + %I : pull 2 bytes to Print signed DEC -32768..32767 + + %L : pull 2 bytes PTR to 4 bytes signed DEC -2147483648..2147483647 + + %n : pull 1 byte to Print low Nibble HEX + + %N : pull 1 byte to Print high Nibble HEX + + %s : pull 2 bytes ptr to C-Style String + + %S : pull 2 bytes ptr to P-Style String + + \e Print 'ESC' ($1B,27) + + \n Print CR=13 + + \\ Print \ + + \% Print % ++ Modifiers for len and padding : + + %d '9' '12' + + %2d ' 9' '12' + + %02d '09' '12' + + %11s 'ABCDEFGH ' + + %011s 'ABCDEFGH000' + + %2f '3.14' + #FOpen Open a file