diff --git a/.gitignore b/.gitignore index a435f84..7962b8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.exe *.out +*.sym *.bin *.o *.d diff --git a/ka/crt/fmt/_doprnt.k b/ka/crt/fmt/doprnt.k similarity index 98% rename from ka/crt/fmt/_doprnt.k rename to ka/crt/fmt/doprnt.k index f8f4fc9..26aebeb 100644 --- a/ka/crt/fmt/_doprnt.k +++ b/ka/crt/fmt/doprnt.k @@ -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 diff --git a/ka/crt/fmt/format.k b/ka/crt/fmt/format.k index 9ee093e..0c485eb 100644 --- a/ka/crt/fmt/format.k +++ b/ka/crt/fmt/format.k @@ -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" diff --git a/ka/crt/fmt/printf.k b/ka/crt/fmt/printf.k index c6a160e..98df0c1 100644 --- a/ka/crt/fmt/printf.k +++ b/ka/crt/fmt/printf.k @@ -17,7 +17,7 @@ printf: mov ax0, putc mov ax1, STRLEN_MAX lea ax3, b[rsp+8] - jmp _doprnt + jmp doprnt ; ; Print a string diff --git a/vm/a.sym b/vm/a.sym index a28cff3..31372cb 100644 --- a/vm/a.sym +++ b/vm/a.sym @@ -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