From 96decefa64cbbf62aa79d3c6553fbe3229add5c3 Mon Sep 17 00:00:00 2001 From: Sweet Bread Date: Sat, 12 Nov 2022 19:14:56 +0300 Subject: [PATCH] string.parse_int added, fixed print.int --- README.md | 42 ++---------------------------------------- dnstoys.o | Bin 1264 -> 1264 bytes examples/HWA/main | Bin 8828 -> 8996 bytes examples/HWA/main.asm | 31 ++++++++++++++++++++++++++++++- examples/HWA/main.o | Bin 652 -> 940 bytes examples/HWA/makefile | 7 +++++-- examples/file/main | Bin 9296 -> 9280 bytes examples/file/main.o | Bin 928 -> 912 bytes examples/network/main | Bin 10456 -> 10472 bytes src/dnstoys.asm | 2 +- src/std.asm | 1 + src/string.asm | 42 ++++++++++++++++++++++++++++++++++++++++-- std.o | Bin 920 -> 924 bytes string.o | Bin 416 -> 528 bytes 14 files changed, 79 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 1af7a28..a503098 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,6 @@ This project for me just for fun to not spending time for routine operations -1. std - - print - - str - - int - - ~~float~~ - - ~~hex~~ - - char - - bin - - nl - - exit -2. file - - open - - close - - content - - ~~size~~ - - ~~next_line~~ -3. path - - filename - - ~~join~~ - - ~~is_dir~~ - - ~~is_file~~ -4. string - - copy - - len - - ~~split~~ - - ~~replace~~ - - ~~find~~ - - ~~parse_int~~ - - ~~parse_float~~ -5. network - - get_ip - - IP_to_str -6. dns - - send - - get_field -7. [dnstoys](https://www.dns.toys/) - - myip - - ~~weather and other~~ -8. ~~http~~ -9. ~~json~~ +[Wiki](https://github.com/VerySweetBread/asm_libs/wiki) +[Examples](https://github.com/VerySweetBread/asm_libs/tree/main/examples) A lot of shit code included diff --git a/dnstoys.o b/dnstoys.o index f1b559d286930ac5adfdff9693b9b67cc87301fc..8af284ae14fa6077f594a64c428f165c51ffcd61 100644 GIT binary patch delta 13 Ucmeys`GIpo1PdeE+?jQ{`u delta 13 Ucmeys`GIpo1Pde6Aui2wiq diff --git a/examples/HWA/main b/exam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