1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-06-19 13:50:53 +02:00
parent d6716d3112
commit 6f5a453fec
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
5 changed files with 25 additions and 24 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.exe
*.out
*.sym
*.bin
*.o
*.d

View File

@ -3,9 +3,9 @@
;
; typedef int (*PUTC)(int ch)
; int _doprnt(PUTC putc, int n, const char *fmt, va_list ap)
; int doprnt(PUTC putc, int n, const char *fmt, va_list ap)
;
_doprnt:
doprnt:
enter 8
mov q[rbp-8], rbx
mov q[rbp-16], nx0

View File

@ -2,6 +2,6 @@
; See the LICENSE file in the project root for more information.
include "crt/fmt/itoa.k"
include "crt/fmt/_doprnt.k"
include "crt/fmt/doprnt.k"
include "crt/fmt/printf.k"

View File

@ -17,7 +17,7 @@ printf:
mov ax0, putc
mov ax1, STRLEN_MAX
lea ax3, b[rsp+8]
jmp _doprnt
jmp doprnt
;
; Print a string

View File

@ -9,26 +9,26 @@ _itoa.next 1048942
_itoa.fini 1048976
_itoa.bad 1049048
_itoa.zero 1049086
_doprnt 1049120
_doprnt.main_loop 1049250
_doprnt.print_regular 1049286
_doprnt.check_modf 1049344
_doprnt.modf_s 1049640
_doprnt.print_string 1049678
_doprnt.modf_c 1049736
_doprnt.modf_p 1049778
_doprnt.modf_x 1049830
_doprnt.modf_u 1049870
_doprnt.modf_d 1049910
_doprnt.modf_o 1049944
_doprnt.modf_b 1049984
_doprnt.print_number 1050024
_doprnt.print_itoa_buf 1050084
_doprnt.modf_percent 1050156
_doprnt.bad_modifier 1050194
_doprnt.nullstring 1050258
_doprnt.epilogue 1050426
_doprnt.doput 1050512
doprnt 1049120
doprnt.main_loop 1049250
doprnt.print_regular 1049286
doprnt.check_modf 1049344
doprnt.modf_s 1049640
doprnt.print_string 1049678
doprnt.modf_c 1049736
doprnt.modf_p 1049778
doprnt.modf_x 1049830
doprnt.modf_u 1049870
doprnt.modf_d 1049910
doprnt.modf_o 1049944
doprnt.modf_b 1049984
doprnt.print_number 1050024
doprnt.print_itoa_buf 1050084
doprnt.modf_percent 1050156
doprnt.bad_modifier 1050194
doprnt.nullstring 1050258
doprnt.epilogue 1050426
doprnt.doput 1050512
putc 1050568
printf 1050586
print 1050644