new version of HuC!

hu, cd, scd, acd, supergrafx discussions.
Post Reply
User avatar
Gravis
Kitten Blaster
Posts: 79
Joined: Sun Jun 22, 2008 3:52 pm
Location: Deadman Wonderland

new version of HuC!

Post by Gravis » Sun Jun 08, 2014 11:01 am

so someone else fixed up the wreck we know as HuC and it now uses ANSI function declarations (death to small C!) as well as structs. oh yeah, it is also 64 bit compatible.

the source is on github: https://github.com/uli/huc

User avatar
MooZ
Site Admin
Posts: 386
Joined: Sun Jun 22, 2008 3:19 pm
Location: Lvl 3
Contact:

Re: new version of HuC!

Post by MooZ » Sun Jun 29, 2014 5:43 pm

Do you if some binary releases are planed? Otherwise maybe someone should take over the task and propose windows/linux/mac builds (provided he has the machines to build them).

User avatar
Gravis
Kitten Blaster
Posts: 79
Joined: Sun Jun 22, 2008 3:52 pm
Location: Deadman Wonderland

Re: new version of HuC!

Post by Gravis » Tue Jul 08, 2014 5:35 pm

MooZ wrote:Do you if some binary releases are planed? Otherwise maybe someone should take over the task and propose windows/linux/mac builds (provided he has the machines to build them).
pff! it uses like nil external libs. if you dont already have a compiler, you dont need this compiler!

User avatar
MooZ
Site Admin
Posts: 386
Joined: Sun Jun 22, 2008 3:19 pm
Location: Lvl 3
Contact:

Re: new version of HuC!

Post by MooZ » Tue Jul 08, 2014 6:31 pm

Sure but I know from experience that whole bunch of people will still use the old version because it comes as a packaged binary.

tomaitheous
Posts: 88
Joined: Mon Jun 23, 2008 1:58 pm

Re: new version of HuC!

Post by tomaitheous » Tue Jul 15, 2014 10:54 pm

Did some of the PCEAS bugs get fixed as well? Specifically, the bug where if an opcode of more than 1byte, crosses a 8k page boundary.

User avatar
MooZ
Site Admin
Posts: 386
Joined: Sun Jun 22, 2008 3:19 pm
Location: Lvl 3
Contact:

Re: new version of HuC!

Post by MooZ » Thu Jul 17, 2014 8:39 am

His pceas version is based on nop's fork (https://github.com/nop00/pceas).
I don't think this bug was fixed. What happened when the instruction crosses the bank boundary? PCEAS vomits an error? The generated bin is buggy?
If it's the old "bank overflow" error I think it's fixed as the repo was started from your latest release.

tomaitheous
Posts: 88
Joined: Mon Jun 23, 2008 1:58 pm

Re: new version of HuC!

Post by tomaitheous » Sat Jul 19, 2014 4:02 am

Ahh ok, I see. It is. But, there's a possible incompatibility with old PCEAS generated code here; local label names used in high lever expressions. I added the ability to do .- and .+ (.+, .++, .---, .----, etc) for local labels. And you can use this just fine in expressions.. *IF* you use a space. The release can came with 3.21 Denki allowed you to do .local+#$33. But you can no longer do this in this new version. You have to use spaces in between the operator symbols and label names, else it thinks ".local+" is the label. So, .local + #$33 works fine, in the new build. But not without spaces, if that makes sense.

I fixed one error handling routine (didn't have an return/exit). I added .dwl and .dwh, which are define byte directives, but get the high byte or low byte of a word. The bank opcode in the middle of two banks now just increments the bank, but I didn't test all internal address calculations into the second bank (if there's a bug there before relative to that, then it's still there). I added "." character for macro names as well, i.e "MOVE.b" or "MOVE.w".

I'm coding some macros now, and there needs to be a new define for indirect addressing. Both [zp] and [zp],y return the same test value (4). Makes it a pain for making all purpose pseudo opcodes.

HuC also needs a form of assigning a bank/address to a higher level function. And possible a segment layout that's mapped on the function call (something the user can define). CC65 has this, and this is how it gets around the memory near/far/ram/etc layout problems of a banked system (this would also allow more optimized dev on SGX and CD projects that need to setup and access more than 8k of ram). If I can get this compiled on windows, I'll see if I can add this (I added a few things to HuC source in the past (C++ style comments, single inline asm directive, etc - just never made them public).

HyperFighting
Posts: 6
Joined: Thu Jun 26, 2014 12:58 am

Re: new version of HuC!

Post by HyperFighting » Sat Jul 19, 2014 6:53 pm

I'm with Mooz on this one.
A binary release would make it easier for new comers to get started. I have never compiled a compiler before but the ability to use C++ style comments and structs would be awesome among other things.

It boils me up when people turn their nose up and suggest "If you don't know how to do it don't bother it's not for you" this type of attitude sucks. We are people at different skill levels having fun with what we like. If you don't want to help then don't but on the other hand only contribute to the discussion if it is positive. I made up a little rap it goes like this... life is about F-U-N if you ain't about that F-U then. Sorry I know that last part wasn't very positive but I I'm so tired of high and mighty comments over bull crap.

RegalSin
Posts: 29
Joined: Sat Oct 03, 2009 8:39 pm

Re: new version of HuC!

Post by RegalSin » Sat Dec 26, 2015 7:42 pm

Trying to mash this into a small Haiku format as possible.

Well Hyperfighting, that just seems the attitude of Gravis. I have suggested many ideas and I get verbal abuse. Sad part he actually likes Zelda ( or at least liked ). In fact I am like three college grade classes behind from getting my bachelors in Computer Science. If I had not failed the last class* I would have been doing "Circuitry and logic", and the other Math classes.

* That was because for the last three years I decided to take care of my senile family member while I was on break from college. Very stressful to venture from one place with barely any electronics and your deciding what to do after stopping from college ( I have over 200+ usable credits to branch off from ). Being in new places without any idea to do with my time.

In fact being/visiting that crowd. The Sci-fi and Anime club. I do not want to be apart of that crowd anymore. Because nobody is open or wants to get along. That is how I feel in general. People want me as a tool. I purchased a copy of CV-X for the PCE. I tested it out. Somebody on the bigger PCE forum made a new account just to ask me if it was real or not. Instead of supporting me they hide behind another user name. If I was Japanese I would probably be doing animations or a comic right now. Even a filthy flash game. Apparently you have to grow a Vagina in order to be respected in the west as an artist, as nobody wants to fund men

In short I would rather move to Flash as a programming tool for non-programmers. Because the community is big.

Post Reply