flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Jessé 20 Jun 2025, 23:10
I made these useful tools using fasm2, guided by lack of numeric interpretation for IPs under Linux shell. And I already use them in a production scenario, with IPv4 networks. They're great (for network administration purposes based on scripts, or for curious minds that want to dig into IP x number correspondence)!
You can get it here: https://github.com/Jesse-6/shell-ip-number-tools There are 4 binaries (so far): - ip6tonum -> converts IPv6 address to decimal number (this is huge!); - ip4tonum -> converts IPv4 address to decimal number; - numtoip6 -> converts decimal number to IPv6; - numtoip4 -> converts decimal number to IPv4. And, the best part is: all of those binaries together occupies less space than the average 'helloworld' C program! 🤓 That's why I love assembly, folks. |
|||
![]() |
|
jbirddog 21 Jun 2025, 11:54
I cloned your repo and ran a couple tests from the README, all seem to work as expected. Cool to see the fastcall from previous posts in action, I'll have to study that and the anon label stuff some more.
Just to pass along something I picked up while looking at dosmancer's fasm68k https://github.com/fredrik-hjarner/fasm68k - you can add the fasm2 repo as a submodule (and similarly for your fastcall repo) and configure a shell script with the correct include paths. I ended up doing this (with a fork that has some executable bits set) in one of my projects in hopes that it makes it easier for others to clone and build the code. If in the future you ever wanted a CI job it would help there as well. In this beautiful fasm world the tools are small enough that doing this is no big deal imho - can't imagine trying to add LLVM as a submodule for every C project... Anyway good job, code looks clean and really just wanted to pass along the submodule idea in case you haven't considered it yet and it may be helpful. |
|||
![]() |
|
sylware 22 Jun 2025, 10:41
Those are really cool commands. Nice!
|
|||
![]() |
|
Jessé 22 Jun 2025, 14:59
Thanks, sylware. I appreciated it.
I hope they are useful, because I did them to supply a specific need I had, and they came very handy to that purpose: sweep across a big network (which I manage at the ISP I'm working), and create a list of a specific device that has outdated firmware version in a txt file. Without them, this will be a very hard task to do with shell, if not impossible. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.