How long is a thread allow to sit idle until it gets auto-locked?
Kinda drifted away from rewriting some code into C, mainly due to certain parts that are essential in the original MC68HC11...
Type: Posts; User: etech58761
How long is a thread allow to sit idle until it gets auto-locked?
Kinda drifted away from rewriting some code into C, mainly due to certain parts that are essential in the original MC68HC11...
Here's my attempt at rewriting it into C++.
Critique welcomed.
I previously posted some questions about porting some 6801 assembly over to C++...
I found a solution that may allow me to use the original code mostly as-is (but not without some rewrites for...
I've been focusing on the interrupt routine that runs in the background, and these 800-some bytes of code are a lot more challenging than I expected.
I can't decide if they went the obfuscation...
(I fixed it somehow... I wound up doing a line by line comparison with the original 6801 disassembly and made a bunch of clarifications and corrections, tried again, and the compiler was in a better...
So, I've been working on the interrupt code and have run into an error I just can't see for some reason and it doesn't manifest if I try and cut it down and then force the error so I've just attached...
I do see some places where operations are performed on consecutive or grouped memory locations, so you may well be on to something in regards to 24-bit math. I'll keep that in mind.
I already know...
Interrupts:
I'll just comment out the calls for now until I decide what hardware I will end up using, see how interrupts are handled on the chosen platform and go from there at that time.
BCD:...
So I have a solid start on getting the 3/4 of the code I've transliterated moving towards proper C++.
I've got some questions that I would like input on to get an idea how to tackle the other 25%...
I wound up redoing the transliteration I'd been working on, and have about 3/4 of the code ready for optimization and final rewrite.
What remains may leave me bald by the time I finish.
I do...
Followup: I have now eliminated all seven 'emergency exit doors' from the code.
The more I dig, the more I am amazed the original code works as well as it did on the original hardware.
The approach I plan to take within the function is to set the variable 'error' if the conditional is met that would have triggered the jump to the INS instructions, and use the 'else' part of the...
Just sticking my nose back in for a few minutes... will have to take a bit of time and digest the information at the start. I do appreciate the information - like I said, I'm not looking for "eh,...
Salem - THANK YOU for the prompt to look at the code at $EE0A...!
Had a light-bulb moment (and a 100-watt grin on my face atm)
I now realize what's happening - the code at EE0A displays a...
A sampling of code that I've translated from 680x assembly, formatted into C++, and tested in an online compiler.
int keyCheck ( bool enter, bool check, bool next, bool repeat,
...
...I didn't realize there was that much difference between the variants - given how little I know about the C languages, I may have posted my original question in the wrong forum?
Regardless, as...
So I decided to try a different approach regarding the code and before I show a few examples of my coding, I want to get back to one bit of 680x coding that has me scratching my head looking for a...
laserlight: I found an online c++ debugger, have already taken a few functions through it and got them to the "it'll compile" stage, so I have a tentative start. Will post snippets hopefully soon to...
Tossing in the towel for now.
I got CodeBlocks and gcc installed, but even though I followed the instructions and installed the latest available for Mac (17.12; they don't have resources to commit...
The instructions in the C++ book for fetching and installing CodeBlocks DID include instructions for fetching and installing gcc as well, which I just now confirmed was present.
Just dropping in for a bit... picked up a C++ book a few hours ago (I didn't see the recommendations until too late; wound up with C++ all in one for Dummies) and now have the CodeBlocks compiler...
Good deal! I'll be back when I'm ready to start coding for real. Will get a "C++ for Dummies" or other similar entry-level treatise in the meantime.
Really appreciate everyone's patience with my...
jimblumberg: The other major ICs in this:
8279 keyboard / display driver: I've already identified all the code pertaining to the calls to this IC, so it "shouldn't" be that difficult to replace...
My end goal? A proper C program, of course.
I don't want something that needed to be brute-forced through a compiler, no! The end goal is a program that reads well and flows well. If I have to...
Here's a couple samples of the code as it stands now.
Please keep in mind that I KNOW it is nowhere near proper formatting OR structure for C.
My goal right now is transliteration: converting...