|
ebee21c457
|
mov X, 0 -> xor X, X - Fixes #3
|
2025-07-20 22:38:06 +02:00 |
|
|
6bc6000454
|
printf: Prevent special characters not being processed if it was proceeded by a percentage sign (ie '%\n')
|
2025-07-20 12:35:13 +02:00 |
|
|
b0e9193b0a
|
atoi(): Add support for lowercase hexadecimal letters
|
2025-07-20 12:18:29 +02:00 |
|
|
3510139c25
|
Add tests for atoi()
|
2025-07-20 11:41:20 +02:00 |
|
|
1c5ba65f49
|
Correctly set padding length when using prefix (fixes #1)
|
2025-07-17 14:56:35 +02:00 |
|
|
3978805d8f
|
Extra test for %p (or rather prefix+padding): prefix taken into account for padding spaces but not for zeroes.
|
2025-07-15 16:57:53 +02:00 |
|
|
53f9c1e2f7
|
Fix tests for printf %p: Don't use random magic number but actual pointers, since that's what %p is for)
|
2025-07-15 16:50:00 +02:00 |
|
|
e718e1534b
|
printf: Add format specifier %p
|
2025-07-15 16:39:19 +02:00 |
|
|
70ab8b19c3
|
Allow printing prefixes for %x,%X,%b and %o (pass ~base to udec)
|
2025-07-15 16:31:52 +02:00 |
|
|
351f8058f9
|
Replace old X2str references in src/tests.asm
|
2025-07-15 08:58:03 +02:00 |
|
|
7caa050b71
|
Revert src/tests.asm (%000064b -> %064b). Was a quick test (assure pad num is calculated correctly with multiple zeroes)
|
2025-07-15 08:56:49 +02:00 |
|
|
920522e167
|
printf: increase arg counter (r14) for invalid specifiers, as it's supposed to do (according to func doc)
|
2025-07-15 08:55:37 +02:00 |
|
|
dc49e29019
|
utoa/printf: Support octal (%o)
|
2025-07-15 08:18:57 +02:00 |
|
|
9f33e36883
|
Rewrite X2str functions to itoa/utoa ; it was a stupid idea to have seperate functions (=> more maintenance)
|
2025-07-15 07:58:18 +02:00 |
|
|
954bc21eee
|
Change mas[Dec|Hex|Bin]str msgs
|
2025-07-14 15:08:54 +02:00 |
|
|
d4dd5b7d80
|
printf test 12: Use tabs+%0REG_SIZEb instead of %64b for each register; assure full register length is printed if RAX has a different value
|
2025-07-14 14:22:10 +02:00 |
|
|
38126fed44
|
Correct printf12
|
2025-07-14 13:50:35 +02:00 |
|
|
cae828bc9a
|
printf: Add support for \n and \t
|
2025-07-14 13:48:40 +02:00 |
|
|
c544ef8c58
|
Add lazy clamp/clampu tests, adds [MIN|MAX]_(U)INT[64|32|16|8] constants
|
2025-07-14 13:32:37 +02:00 |
|
|
e806e50dc2
|
X2str(): Fix bug where padding wasn't added for longer (converted) strings
|
2025-07-14 12:05:00 +02:00 |
|
|
483d9185de
|
Fix printf args always being first arg when using padding, improved/added tests. NEW FOUND BUG: full qword byte misses 3 characters when using padding
|
2025-07-13 15:03:59 +02:00 |
|
|
1971c5b897
|
Fix typo (extra -) in printf10Str and printf11Str
|
2025-07-12 16:36:51 +02:00 |
|
|
efeded5547
|
printf: Add padding support for %d, %i, %u, %x, %X
|
2025-07-12 16:33:07 +02:00 |
|
|
b327248e0c
|
printf: Shorten code; MOV RDX, R13 instead of bunch of checks (originally I intended to use NOT R12 if padding with zeroes)
|
2025-07-12 08:10:43 +02:00 |
|
|
ee17ec68e0
|
printf(): Allow padding (spaces or zeroes) for %b
|
2025-07-12 07:48:21 +02:00 |
|
|
902d962068
|
Adds bin2str() and printf() format specifier %b
|
2025-07-10 12:19:54 +02:00 |
|
|
e0bd8bcdbd
|
Adds min(), minu(), max(), maxu()
|
2025-07-10 11:58:29 +02:00 |
|
|
34d7fee8dc
|
Adds tolower(), toupper()
|
2025-07-10 11:42:35 +02:00 |
|
|
d919a0be05
|
FIX: Stack alignment in tests.asm
|
2025-07-10 01:22:44 +02:00 |
|
|
08389a5bb2
|
Adds strcmp() (note: much different than strcmp in C)
|
2025-07-09 23:44:40 +02:00 |
|
|
791cccc262
|
Improved strlen test (output), test islower/isupper
|
2025-07-09 22:58:51 +02:00 |
|
|
12827bb1a1
|
Add %i in printf test
|
2025-07-09 11:41:21 +02:00 |
|
|
e80b14c051
|
printf: Support %i,%x,%X
|
2025-07-09 11:34:19 +02:00 |
|
|
af34e3208c
|
Adds hex2str
|
2025-07-09 11:16:04 +02:00 |
|
|
f8df1242fc
|
Rename int2str/uint2str -> dec2str/udec2str
|
2025-07-08 17:49:38 +02:00 |
|
|
cd565f3bfa
|
printf: Adds specifiers %d and %u
|
2025-07-08 17:37:18 +02:00 |
|
|
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 |
|
|
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 |
|
|
a2daf9602b
|
Adds strcat()
|
2025-07-06 12:20:34 +02:00 |
|
|
2fb4312615
|
Adds strcpy()
|
2025-07-06 11:15:58 +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 |
|