0x44 (@0x44_) header
0x44 (@0x44_) profile picture

私は「0x44」です。よければ「D」と呼んでもいいよ。🇺🇸人です。神と自由を信じ、謙虚になることを学んでいます。猫は「Pixel」。ANSI C'89純粋主義者。 ゲームシリーズ「EdenMourne」と、コンパイラ「0x44cc」と、僕の「ArkStation」用Verilogチップ設計中。生成AI不使用。

Texas, USA
Joined March 2022
Pinned Tweet
Obviously it's not an endorsement, but hearing giants compliment your work means a lot.
Replying to @0x44_
Oh wow, that looks good! Kind of makes me think of Phantasy Star. Oh and that camel, though.
2
22
9,300
0x44cc has unofficially officially finally reached ANSI C'89 Freestanding compliance! This means it supports double precision (IEEE 754) floating points (including software floats for consoles lacking the hardware for 64bit numbers and an FPU), all Freestanding headers, and all the features ANSI C'89 describes. I don't consider it operational yet, as it's still not a single-solution until the __asm__ directive is implemented, which includes a partial assembler, so I'll be starting that tomorrow (technically today, since it's 2:30am). At this point, I'm hoping to be "finished" with 0x44cc by the end of the year, though I'll be upgrading my 0x44 engine to support PS1, Mega Drive, and the NeoGeo before I shift back to finishing development of "Prelude to Darkness", and putting 0x44cc through the stress test.
1
34
It's important to always count our blessings, as no matter what, things can always get worse. Started seriously making games over 15 years ago, rejected many offers to stay independent, and still haven't released anything. That said, I'm so grateful for everything in life. Happy Thanksgiving.
28
So I jumped the gun on this and forgot I'd actually done the research before making the decision (hopefully others can relate). Something I remembered only recently as I'm finally nearing the end of floating point support. ANSI C'89, and later standards, dictate a double precision level only achievable with at least 42 bits, and since anything in between 2 words is both extra work and has noticeably slower runtime performance, 64bit doubles is the right call. Lots of interesting stuff to unpack surrounding it as a history lesson (e.g. 80bit registers being used in the 80s for floating points) , but in short, less work for me: yay. Can't believe it's almost December 😩
Damn. Making good progress on IEEE floats, which are pedantic and I expect most to use FIXED decimal (if anyone ever uses this but me), but I'm now realizing my size choices weren't ideal. Currently: float = 16bit FIXED / 32bit IEEE double = 32bit FIXED / 64bit IEEE long double = 64bit However, ANSI C'89 rules explicitly state floating points without the F suffix are implicitly doubles, but 64bits though is an absurd default. So yeah, I gotta change it to: float = 16bit FIXED / 32bit IEEE double = 32bit long double = 64bit
63
Book Review: The MIPS Programmer's Handbook, by Erin Farquhar and Philip Bunce (1994) This book has pretty good coverage of MIPS I, though it's surprising that it chose to omit both MIPS II and MIPS III. I suppose due to the fact that it takes time to write a book, and those took awhile to take off, so with that in mind, it's mostly focused on the R3000. The book's greatest strength is that it shows many examples. The book is C focused, using <mips.h> and <machine.h>, with the latter explicitly shown in detail in the back. The examples mostly focus on interrupts, though it does have a really good section on the stack frame, which is probably the most nuanced part about writing compilers, so it's nice to have a reference. That said, given the date, it should be no surprise that it's limited to the o32 ABI, which at the time was simply "MIPS". While it has a really great compendium for instructions with thorough examples for usage, including macro instructions, I'm once again disappointed actual binary codes have been left out; something I find myself checking often while working on 0x44cc. Overall, I think it's great, and anyone interested in MIPS I should check it out, but it does both leave out many parts of the architecture, though that does seem an intentional decision to target readers who already know MIPS to some extent. TL; DR - It's a great resource, but not exhaustive.
1
1
178
This is the next book I'll be reading, which is more directly relevant to the CPU I'm designing.
1
85
Book Review: See MIPS Run by Dominic Sweetman This book covers MIPS I-IV fairly exhaustively, along with giving peeks into MXDX and MIPS V, MIPS 16, and others. It starts by going over the history and architecture, comparing it with CISC, detailing differences of the different generations, like the R3000 (of PS1 fame), R4000 (of N64 and PS2 fame), and others. It then goes into detail covering all the quirks and details of working with MIPS, of which there are many. From determining the generation you're working with, to using interrupts, delay slots, cache usage, and more, this book goes well beyond the typical high level instruction view. The book finishes up with walking your through getting started programming for it using C. In fact, most of the book is told from the perspective of a C/ASM programmer. From a general assembly perspective, this book is a great place to start for those who know some assembly, but don't yet realize how vast the development environment is. For those wishing to learn more about MIPS from a programming level, I'd say this is likely the definitive book on the subject. For those interested in designing MIPS chips (like me), this is probably also essential, as it's simply too useful for understanding what the chips need to implement for the programmer.
3
3
255
This is the next book I'll be reading, however Dominic mentions it, and says it's a little lacking and leaves out pieces of the architecture. It appears to be more of an introduction.
24
Here's a link to the last review, which was another MIPS book, though I would say in retrospect, the TL;DR is that it's a VERY brief look at the subject and more of a quick pocket reference for those who like having physical references. nitter.gq/0x44_/status/210472923…
Current book btw. Part of my curratted list for my path to making the ArkStation, but I'm reading it much sooner than I had previously planned due to its current relevance with 0x44cc's first ISA being MIPS I (PS1). In age where a lot of respected programming names having been saying AI is the future, I'm happy to be head in the opposite direction, and I think the future looks bright, as I'll continue exploring the wonderful world I grew up in. Also, yes I got 3 of these too. ~$30 after shipping.
1
112
Kills me how many blame C for things that GCC, Clang/LLVM, and MSVC do. But on that note, my <time.h> will return what the standard intended, rather than hand waive compliance on technicalities to support software that relies on the hard coded CLOCKS_PER_SECOND = 1000.
3
366
I think @elonmusk 's transparency about the sustainability of AI as a service (AIaaS?) is telling, and there's going to be a rug pull in the future. The leak (from MS?): "first get them addicted, then raise the price" seems like the move whether it was intentional or not.
2
344
Damn. Making good progress on IEEE floats, which are pedantic and I expect most to use FIXED decimal (if anyone ever uses this but me), but I'm now realizing my size choices weren't ideal. Currently: float = 16bit FIXED / 32bit IEEE double = 32bit FIXED / 64bit IEEE long double = 64bit However, ANSI C'89 rules explicitly state floating points without the F suffix are implicitly doubles, but 64bits though is an absurd default. So yeah, I gotta change it to: float = 16bit FIXED / 32bit IEEE double = 32bit long double = 64bit
1
1
361
Looking at the near future of 0x44cc, MD & NeoGeo specifically, and the 2nd CPU, a Z80. It only has 4 registers, which is hard w/o an AST or IR. I'll eventually add support (e.g. PC88), but for now, looks like I'll be writing some audio drivers in pure Z80 asm after M68K support. (Which should be easy since it has the same number of registers as MIPS I).
1
260
The arg stands for ARGGGGGGHHHHHHH, because that was a b*tch, but this battle is won. <stdarg.h> now fully supported.
1
320
Implementing <stdarg.h> from scratch for my compiler, and it's kicking my butt. I'm now reworking the entire macro system. That said, it makes me want to build out a full hosted implementation, as every new header has uncovered holes.
5
219
Countless repeat the saying, "the only thing that matters is the user experience", and it's meant to chastise engineers for putting a lot of attention on how things are made. However, I firmly believe HOW you make something has a significant impact on what you end up making.
2
124
Once again moved the goal post, and am going to implement 64bit IEEE floats. For ISAs like MIPS I (PS1) and M68k (Mega Drive/Neo Geo), it means doing them in software. That said, I was planning on N64/PS2/etc support anyway, so I'm just doing it sooner than initially planned.
2
121