diff --git a/include/stdio.mfk b/include/stdio.mfk index 6ac71e02..22c135a8 100644 --- a/include/stdio.mfk +++ b/include/stdio.mfk @@ -60,6 +60,14 @@ void putword(word w) { } } +void putsigned16(signed16 x) { + if x < 0 { + putchar('-') + x = 0000-x + } + putword(x) +} + #if CBM_PET inline asm void ensure_mixedcase() { ? lda #14