Commit Graph

119 Commits

Author SHA1 Message Date
72409116f5 Adds int2str() and uint2str() (=>itoa) 2025-07-08 17:12:33 +02:00
4e7f086bff printf(): Add %c, add test for %c and args on stack 2025-07-08 13:03:17 +02:00
3b1ce7ca40 Adds strclr() 2025-07-07 15:21:48 +02:00
9b1519b2f4 strcpy(): Assure DF=0 2025-07-06 21:35:50 +02:00
3d2bf1b40d printf(): Fix wrong instruction when fetching arg from stack (lea->mov : arg already is (supposed to be) an address) 2025-07-06 21:26:26 +02:00
3ccad56d76 printf(): Add support for %s, fix buffer flushing (length given was r11, not r10) 2025-07-06 20:50:07 +02:00
cc214ed5e5 Adds basic printf() (currently only support '%%') 2025-07-06 20:09:21 +02:00
a47ab3cdc6 strcat: Better logic for determining max amount of characters to copy 2025-07-06 19:13:05 +02:00
ddd44d5a68 Remove comment that was supposed to be removed in the previous commit 2025-07-06 12:25:19 +02:00
69fd2096fa Remove old comments 2025-07-06 12:24:46 +02:00
a2daf9602b Adds strcat() 2025-07-06 12:20:34 +02:00
1a6ea4ffe6 Optimize strcpy(): 1- Conditional moves (I keep forgetting about them) 2- Better setting of RCX (better accounting for EOS) 2025-07-06 11:59:49 +02:00
2fb4312615 Adds strcpy() 2025-07-06 11:15:58 +02:00
a3a128354d zero AL, not RAX in strlen() (SCASB uses AL, so no need to zero all bits) 2025-07-06 10:53:23 +02:00
a193054304 Add conditional code for tests.asm (include certain tests or not) 2025-07-05 02:30:18 +02:00
2e9d88ed76 Adds print(), puts() 2025-07-05 02:28:59 +02:00
b0a3da746f Adds strlen() 2025-07-05 01:45:58 +02:00
3b275a6166 Add small constants set, exit() and tests entry/exit 2025-07-05 01:33:33 +02:00
e12b8f0365 Add Makefile, gitignore and (empty-ish) source files 2025-07-05 01:11:30 +02:00