...base Debian12 install + build-essential and git/wget... (I was interested in how big that would be =) ...if you want me to foist it to mega, lemme know...
...you can't do that... the included Makefile in that git repo is...I am getting a compile error from the makefile (I renamed makefile.cpp )
The CC, CPP and LIBS lines might be all you need to change ... the Makefile depends on a few coreutils-linux commands, not sure if mingw automagically detects/parses and transposes those calls...Code:CPP = g++ CC = gcc OBJDIR = build $(shell mkdir -p $(OBJDIR) >/dev/null) DEPDIR = .d $(shell mkdir -p $(DEPDIR) >/dev/null) DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td POSTCOMPILE = @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@ LIBS = -static-libgcc -g3 BIN = disassembler CXXFLAGS = $(DEPFLAGS) -std=c++11 -g3 -std=c++11 RM = rm -f SRC=$(wildcard *.cpp) OBJS= $(addprefix $(OBJDIR)/,$(SRC:.cpp=.o)) .PHONY: all clean clean-all test all: $(BIN) $(BIN): $(OBJS) $(CPP) -o $@ $(OBJS) $(LIBS) $(OBJDIR)/%.o: %.cpp $(DEPDIR)/%.d $(CPP) -c $< -o $@ $(CXXFLAGS) $(POSTCOMPILE) clean: @${RM} $(OBJS) @${RM} $(DEPDIR)/* clean-all: clean @${RM} $(BIN) $(DEPDIR)/%.d: ; .PRECIOUS: $(DEPDIR)/%.d include $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRC))))
...base Debian12 install + build-essential and git/wget... (I was interested in how big that would be =) ...if you want me to foist it to mega, lemme know...
The reason why Nec78CDasm won't run is reliant on a DLL that is not compatible with my version of windows.
...and you don't wonder why I create a debian virtualdisk just for fun/you?....you keep soldiering on...but me? I'm only 5-6years your younger...and life is too short...
...I mean, don't get me wrong here, I applaud you efforts/endeavours with this, but the common sense quick solution here is "just use linux" ... as a coding tool....
...output of Nec78CDasm;
Code:00000: 54 B7 00 JMP 00B7 00003: 00 NOP 00004: 54 B7 00 JMP 00B7 00007: 00 NOP 00008: 54 B1 07 JMP 07B1 0000B: 00 NOP 0000C: 00 NOP 0000D: 00 NOP 0000E: 00 NOP 0000F: 00 NOP 00010: 54 A4 06 JMP 06A4 00013: 00 NOP 00014: 00 NOP 00015: 00 NOP 00016: 00 NOP 00017: 00 NOP 00018: 54 62 09 JMP 0962 0001B: 00 NOP 0001C: 00 NOP 0001D: 00 NOP 0001E: 00 NOP 0001F: 00 NOP 00020: 54 B7 00 JMP 00B7 00023: 00 NOP 00024: 00 NOP 00025: 00 NOP 00026: 00 NOP 00027: 00 NOP 00028: 54 4E 06 JMP 064E 0002B: 00 NOP 0002C: 00 NOP 0002D: 00 NOP 0002E: 00 NOP 0002F: 00 NOP 00030: 00 NOP 00031: 00 NOP 00032: 00 NOP 00033: 00 NOP 00034: 00 NOP 00035: 00 NOP 00036: 00 NOP 00037: 00 NOP 00038: 00 NOP 00039: 00 NOP 0003A: 00 NOP 0003B: 00 NOP 0003C: 00 NOP 0003D: 00 NOP 0003E: 00 NOP 0003F: 00 NOP 00040: 00 NOP 00041: 00 NOP 00042: 00 NOP 00043: 00 NOP 00044: 00 NOP 00045: 00 NOP 00046: 00 NOP 00047: 00 NOP 00048: 00 NOP 00049: 00 NOP 0004A: 00 NOP 0004B: 00 NOP 0004C: 00 NOP 0004D: 00 NOP 0004E: 00 NOP 0004F: 00 NOP 00050: 00 NOP 00051: 00 NOP 00052: 00 NOP 00053: 00 NOP 00054: 00 NOP 00055: 00 NOP 00056: 00 NOP 00057: 00 NOP 00058: 00 NOP 00059: 00 NOP 0005A: 00 NOP 0005B: 00 NOP 0005C: 00 NOP 0005D: 00 NOP 0005E: 00 NOP 0005F: 00 NOP 00060: 54 B7 00 JMP 00B7 00063: 32 INX HL 00064: 80 CALT 128 00065: 80 CALT 128 00066: 32 INX HL 00067: 36 2D SUINB A, 2D 00069: 30 32 DCRW 32 0006B: 2D LDAX (HL)+ 0006C: 32 INX HL 0006D: 30 30 DCRW 30 0006F: 33 DCX HL 00070: FF JR 00070 00071: 18 MOV EAH, A 00072: 03 DCX SP 00073: 6E 17 MVI H, 17 00075: C0 JR 00076 00076: 54 65 73 JMP 7365 00079: 74 69 6E NEI A, 6E 0007C: 67 20 NEI A, 20 0007E: 45 32 2D ONIW 32, 2D 00081: 52 DCR B 00082: 4F 4D JRE FFFFFFD1 00084: 20 20 INRW 20 00086: FF JR 00086 00087: C0 JR 00088 00088: 49 6E MVIX (BC), 6E 0008A: 69 74 MVI A, 74 0008C: 20 41 INRW 41 0008E: 4C * 0008F: 45 20 43 ONIW 20, 43 00092: 6E 74 MVI H, 74 00094: 72 SOFTI 00095: 6C 65 MVI D, 65 00097: 72 SOFTI 00098: FF JR 00098 00099: A1 POP BC 0009A: 81 CALT 130 0009B: 52 DCR B 0009C: 65 73 74 NEIW 73, 74 0009F: 6F 72 MVI L, 72 000A1: 69 6E MVI A, 6E 000A3: 67 20 NEI A, 20 000A5: 6C 61 MVI D, 61 000A7: 73 * 000A8: 74 C0 43 ADDW 43 000AB: 68 61 MVI V, 61 000AD: 6E 6E MVI H, 6E 000AF: 65 6C 20 NEIW 6C, 20 000B2: 78 78 CALF 0878 000B4: 78 78 CALF 0878 000B6: FF JR 000B6 000B7: BA DI 000B8: 69 08 MVI A, 08 000BA: 4D D0 MOV MM, A 000BC: 04 FF FF LXI SP, FFFF 000BF: 68 FF MVI V, FF 000C1: 10 EXA 000C2: 68 FF MVI V, FF 000C4: 64 06 FF MVI MKH, FF 000C7: 64 07 FF MVI MKL, FF 000CA: 05 03 F6 ANIW 03, F6 000CD: 05 03 7F ANIW 03, 7F 000D0: C5 JR 000D6 000D1: 69 02 MVI A, 02 000D3: 54 E9 30 JMP 30E9 000D6: 6A FF MVI B, FF 000D8: 34 00 FF LXI HL, FF00 000DB: 2B LDAX (HL) 000DC: 1B MOV C, A 000DD: 69 AA MVI A, AA 000DF: 3B STAX (HL) 000E0: 70 FB EQAX (HL) 000E2: EE JR 000D1 000E3: 69 55 MVI A, 55 000E5: 3B STAX (HL) 000E6: 70 FB EQAX (HL) 000E8: E8 JR 000D1 000E9: 69 00 MVI A, 00 000EB: 3B STAX (HL) 000EC: 70 FB EQAX (HL) 000EE: E2 JR 000D1 000EF: 69 FF MVI A, FF 000F1: 3B STAX (HL) 000F2: 70 FB EQAX (HL) 000F4: 4F DB JRE 000D1 000F6: 0B MOV A, C 000F7: 3D STAX (HL)+ 000F8: 52 DCR B 000F9: E1 JR 000DB 000FA: 71 C7 12 MVIW C7, 12 000FD: 71 C8 34 MVIW C8, 34
Last edited by wotnot; 06-08-23 at 10:25 AM.
....went out this arvo to stihl some firewood, on the way back home car ran out of front brake-pads...there's tomorrow gone doing that job...but I did get enough wood cut up for the ensuing week...
...having a coffee, thinking about this....I believe what you've done, is install the compiler without the required toolchain modules...at a guess..
This is all fairly well explained when it comes to installing MSYS/MSYS2 .... see
Lets go back a bit. The reason I renamed makefile is that my toolchin doesn't recognize the native file.
Now it does and tries to compile, except for a couple lines in the makefile.
MSYS and MSYS2 installed by the book. A problem is this computer/OS just ignores environment variables.
I tried running Nec78CDasm on my XP machine and get a lost entry point in Kernel32.dll.
I know you have a life to live besides catering to me, but if I go to Linux as a tool, I would need some serious step by step help.
Compiling either of these disassemblers is a sidetrack from the goal.
I need a good disassembly to reverse engineer the firmware in a radio. That firmware has some faults I am trying to fix. I tried using MAME but is has major faults, Yo posted a disassembly (Thanks) That may be the best I will get. that should give me enough to work with in RE this firmware.
I will need a break from this going in for eye surgery end of the month, then saving for a real computer I can do this work on.
I hope you get your truck fixed and no more problems.
Thanks to the Nth magnitude.
...you cannot rename the (a) Makefile.....The reason I renamed makefile is that my toolchin doesn't recognize the native file.
...at a guess, it's the 32bit cut of Kernel32.dll ...if you didn't specifically compile to that target, you probably need the 64bit version....I tried running Nec78CDasm on my XP machine and get a lost entry point in Kernel32.dll
...not actually, the commands for this in linux are the same as for MSYS.... , download/extract the ... start virtualbox using that virtual disk file.... the commands are the same as already given...but if I go to Linux as a tool, I would need some serious step by step help.
All the best for your op...(cataracts?).....as for computer to do this.... ...that is all you need (if you don't bed on that I will...I buy these for debian desktops with Amiga emulator builtin)I will need a break from this going in for eye surgery end of the month, then saving for a real computer I can do this work on.
...car actually, all fixed now (but it's a R31 Skyline and there's always a next problem with 34yo cars =)I hope you get your truck fixed and no more problems.
OK, I found a couple things I've been doing wrong. I need target system x64 setting for one, and a couple configuration settings in Ming64. Just playing, I did ok building a makefile for a calcolator and editor, but I have some learning yet with syntax and commands for more complex make files like this. Like I really don't know what I am doing. Last build it didn't like the 'Clean 'tool, and wonder if I even need that.
Those Optiplex are like my XP machine. Bloody good machines. I have = Dell XPS incoming and a buddy at a computer shop is going to buld on that. That will replace my inspiron that died.
I will try setting it up with dual OS, Win 11 and Linux. I gather Debian will do what I need.
Yeah, debian's fine ...did you bid on that optiplex? ....I don't wanna bid against you =)
No. I have an HP Proliant on steroids in the making. I think most of my project will be back burner until my eye surgery and get the new computer set up and configured.
Now that I have a good scope of the programming tools, it should have me ready to go.
It would be real nice to have 78C10-disassembler running now for the rework I need for the dump.
I don't know if you are into embedded controllers, but this firmware is the worst 'bad code' I have ever seen.
Not to mention the 78C10 is a new CPU for me to chew on.
Cheers M8
...umm....in linux.. no, not really =) They're good value for money as a light-weight desktop...but they have little short comings... proprietary ones. As always, it depends on usage case, and I'm doing Amiga emulation..with linux-rt (real time kernel)...before that it was linux based DAW setups (digital audio workstation)..and long time after that I was doing stuff with WINE... and all these things get hit with the same complications at the audio layer. The little thin-client machines glutting the 2nd-hand market right the now, is due to the 'coincidental timely manner' that sees these machine type deployments nearing EOL expectancy, in concert with M$ win11 release deprecating these machines but be less than minimum spec. This...is not the 'domestic' computer hardware playground most ppl are used to ~ these are dedicated business/corporate office units, with a BIOS heavily scented with cloud computing connectivity.... and the actual machine model being described by 'featurebytes' , indicating which part of the motherboard assembly got stuffed with parts =) You can't find bugger all tech specs online for them, as they were inhouse maintained/serviced on some long term leasing plan or another....and so only now I discover in the HP 800G1 that I ?think? when you've got both the mSATA & mini-PCIE slots populated, something goes awry with the pcie lane routing...leading to a situation where with can auth to the AP but the network stack goes nowhere...(and you just know in the pit of your gut, this is also some frigging BIOS issue)....Those Optiplex are like my XP machine. Bloody good machines.
...you (and most..) folks don't see the sort of BS I and many other linux heads do, when it comes to compiling against this hardware. For instance...dell 9020 usff versus HP 800 G1 usdt ...both use the same CPU, both are based on the intel Q87 chipset... these machines directly competed against each other in the marketplace....in linux, both have bugs with the alsa sound driver modules ~ these bugs are not that, they're being caused by BIOS timing/tuning that better enables the windows WASAPI layer.... this was a feature add to the BIOS firmware...on the HP, it's actually possible to roll back to an earlier BIOS firmware and the problem is fixed...with dell, they're less than forthcoming with BIOS for these units and you're pretty much stuck with it (although I found a way to disable most of the cloud stuff in BIOS, which helps the sound but adds 10secs to the boot process)...
Otherwise they're great little machines, install linux distro of choice and away you go... they're quiet, use bugger all power (HP uses a remote brick...which is better, because if it fails finding a simple 19.5vdc/7A power supply is cheaper/easier than a failed custom SMPS in the dell) ...and as the HP moved to the brick, this leaves space for a MXM GPU card...so you could make it be a halfways decent gamer box for directx-9 targets sort of thing.
I'm going to try a lenovo ultra tiny next....
![]()
The machine I am stuck with for now is a Lenovo ideapad S340. 10th gen corei3 Intel.
For what it is, a very nice lappy for say, a school student or casual use person.
My issues are trying to get the same work don as my Dell inspiron 24 5000 series.
Some of i is doing OK but like loading it with Visual studio and prerequisits, it is choking.
My Optiplex has the latest bios and all the drivers, but it is obsolete. Makes a good work machine I do a lot of radio programming, eprom burning and software hacking. anything that works with XP PRO.
I don't think you will go wrong with the Lenovo tiny. 10 X the machine this is.
Bookmarks