diff --git a/compiler/res/prog8lib/cx16/floats.p8 b/compiler/res/prog8lib/cx16/floats.p8 index cee961814..4300badad 100644 --- a/compiler/res/prog8lib/cx16/floats.p8 +++ b/compiler/res/prog8lib/cx16/floats.p8 @@ -136,14 +136,12 @@ asmsub FREADUY (ubyte value @Y) { } asmsub parse(str value @AY) -> float @FAC1 { - ; -- parse a string value of a number to float in FAC1 - ; warning: on older float @FAC1 { ply plx jmp VAL_1 -+ sta $a9 ; 'index' variable - sty $aa - jsr prog8_lib.strlen - lda $deb6 - cmp #$d0 ; sanity check for kernal routine correct - bne + - tya - jmp $deb6 ; kernal version dependent... -+ ; print error message if routine is borked in kernal, and exit program +_borked ldy #0 - lda _msg,y beq + @@ -168,7 +158,7 @@ asmsub parse(str value @AY) -> float @FAC1 { bne - + jmp sys.exit -_msg .text 13,"?val kaputt",13,0 +_msg .text 13,"?rom 47+ required for val1",13,0 }} } diff --git a/docs/source/todo.rst b/docs/source/todo.rst index de4be414b..c0709bb74 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -51,7 +51,6 @@ Compiler: Libraries: - gfx2: add EOR mode support like in monogfx and see PAINT for inspiration. Self modifying code to keep it optimized? -- once kernal rom v47 is released, remove most of the workarounds in cx16 floats.parse_f() . Prototype parse routine in examples/cx16/floatparse.p8 - fix the problems in atari target, and flesh out its libraries. - c128 target: make syslib more complete (missing kernal routines)? - pet32 target: make syslib more complete (missing kernal routines)?