Translate Your CP/M Code To 8086, And Leave The 1970s Behind!

“Bring our home computing out of the 1970s and into the 1980s and beyond” is the irresistible promise made by the creator of 8088ify, a piece of software which translates CP/M executables from their 8080-based originals to assembler code that should run on an 8088 under MS/DOS. How can we resist such a futuristic promise here in 2021, even though the code wasn’t written to the sound of Donna Summer or the Village People back in the day but here in 2021 for PCjam, a celebration of the original IBM PC’s 40th anniversary.

As the writer of this code [ibara] points out that Intel intended the 8088 to be a ready upgrade path for the 8080, and designed its instruction set while not directly compatible, to make translation between the two a straightforward process. There was commercial software for the task at the time, but to this day there remained nothing with an open-source licence. It’s written in ANSI C for portability across platforms and compilers, and can even be compiled under CP/M itself.

PCjam is well worth a look, and if any of you fancy a go at writing for the earliest MS-DOS machines we’d like to suggest you create something for it. Meanwhile if you’d like to explore CP/M, you can run a bare metal emulator on the Raspberry Pi.

Header: Thomas Nguyen, CC BY-SA 4.0.

Baby C-17 Sends Imaginations Soaring

The C-17 Globemaster III is a military cargo jet that can carry what their commercial counterparts can’t, to places those other planes can’t go. The people who keep these planes flying are proud of their capable airlifter, but it’s hard to show them off. Solution: build a scaled-down version more suitable for driving off base for a parade down Main Street and other community events.

While the real thing was built under an expensive and contentious military procurement process, the miniature was built with volunteer labor using castoff materials. The volunteer force included maintenance crew whose job is to know the C-17 inside and out. Combined with fabrication skills that comes with the job, the impressive baby plane faithfully copied many curvatures and details from full-sized originals. (Albeit with some alteration for its cartoony proportions.) Underneath are mechanicals from a retired John Deere Gator utility vehicle. They usually resemble a large golf cart except with a cargo bed and more rugged suspension. Basically they are to golf carts as a C-17 is to a 767. Amusingly, the little plane has its own rear loading ramp, superficially preserving the cargo-carrying capacity of the original Gator chassis.

Interior features continue, though the official picture gallery doesn’t show them. There is a flight deck with control panels and various sights and sounds to keep visitors entertained. Enough details were poured into the exhibit that some people had to ask if the little plane can fly, and the answer is a very definite no. The wings, and the engine pods mounted to them, are only for show carrying The Spirit of Hope, Liberty & Freedom. It is quite a long official name for such a short stubby thing.

We always love to admire impressively put-together miniatures, and not all projects require skill of aircraft mechanics. Like this very approachable miniature forklift project. But there are plenty of other projects whose skills put us in awe, like this remote-control car powered by a miniature V-10 engine.

[via The Museum of Flight]

Hackaday Podcast 117: Chiptunes In An RCA Plug, An Arduino Floppy Drive, $50 CNC, And Wireless Switches

Hackaday editors Mike Szczys and Elliot Williams discuss the latest hacks from around the Internet. 3D-Printed linear rails don’t sound like a recipe for a functional CNC machine but there was one this week that really surprised us. We were delighted by the procedurally generated music from a $0.03 microcontroller inside of an RCA plug (the clever flexible PCB may be the coolest part of that one). There’s an interesting trick to reverse engineering Bluetooth comms of Android apps by running in a VM and echoing to WireShark. And we look at what the buzz is all about with genetically engineered mosquito experiments taking place down in the Florida Keys.

New this week is a game of “What’s that sound?”. Use the form link on the show notes below to send in your answer, one winner will receive a podcast T-shirt.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (~55 MB)

Places to follow Hackaday podcasts:

Continue reading “Hackaday Podcast 117: Chiptunes In An RCA Plug, An Arduino Floppy Drive, $50 CNC, And Wireless Switches”

VGA Graphics Card In 74xx Logic

Feeling nostalgic we presume, [Glen Kleinschmidt] set out to build a 640x480x64 VGA controller card from discrete logic chips. If we ignore the 512Kx8 Cypress SRAM video memory, he succeeds, too — and on a very readable, single page A3 schematic. The goal is to interface some of his older 8-bit machines, like the TRS-80 Model 1 and the BBC Micro, but for now he’s running a demo using a 20+ year old PIC16F877 micro.

[Glen] provides all the schematics, Gerbers, and C source code on his website should you be inclined to reproduce one for yourself. He has three versions in the works, with various capabilities (there’s a table on his website). As an alternative, one could always use an FPGA or a custom-built chip such as the SSD1963 to generate video for these micros, but sometimes the urge to go retro is too great to resist. We get the feeling that for [Glen], this is a project unto itself, and being able to interface it to his 8-bit computers is just a convenient excuse.

This isn’t [Glen]’s first retro project, either. Check out his analog computer “bouncing ball” project we covered back in 2017. Have you struggled with the build vs. buy decision, and how do you decide?

Continue reading “VGA Graphics Card In 74xx Logic”

7000 RPM On A 3D-Printed Gearbox

[Steven] at the 3D Printer Academy has been working on a variety of different gear designs. He recently embarked on a series of experiments to see how fast he can spin a 3D-printed gearbox.

After testing several kinds of gear teeth, gear diameters, and gear spacing, he finally struck upon an 81:1 ratio gearbox. It has six gears: five stepped gears and one drive gear on the input shaft. First tests are accomplished with a 3D-printed handle, similar to a hand crank used to start really old cars. But unlike those cranks, [Steven]’s doesn’t have any release provision. While the handle can be removed, it can’t be removed while spinning.

We think it would be helpful to revise the drive shaft coupling method, allowing the handle or drill to be easily removed from the gearbox once it’s attained speed. This would be more convenient, and it seems prudent from the workbench safety point of view as well.

Example of a crank quick release mechanism

[Steven] manages to get the final gear spinning at 7000 RPM in video #2 of the series by hand cranking it “as fast as he can”, a speed measured by using the metronome app on his smartphone. He begins driving the gearbox with an electric drill in video #3, with some mixed but promising results. We think he will ultimately succeed in his goal of a high-speed, electric-drill-driven gearbox after a few more tests. If you want to have a go at this yourself, the design files are posted online.

How fast do you think he can eventually get this gearbox spinning? Are there any physical limitations of the assembly or due to the 3D printing materials/process? We certainly know that high torque can tear 3D-printed gearboxes apart, but how does the speed affect things? Let us know in the comments below.

Continue reading “7000 RPM On A 3D-Printed Gearbox”

WSPR May Hold The Key To MH370 Final Position

The disappearance of Malaysia Airlines flight MH370 after an unexplained course change sent it flying south over the Indian Ocean in March 2014 still holds the mystery of the wreck’s final location. There have been a variety of efforts to narrow down a possible search area over the years, and now we have news of a further angle from an unexpected source. It’s possible that the aircraft’s path could show up in radio scatter detectable as anomalously long-distance contacts using the amateur radio WSPR protocol.

WSPR is a low-power amateur radio mode designed to probe and record the radio propagation capabilities of the atmosphere. Transmit beacons and receiving stations run continuously, and all contacts however fleeting are recorded to an online database. This can be mined by researchers with an interest in the atmosphere, but in this case it might also provide clues to the missing airliner’s flightpath. By searching for anomalously long-distance WSPR contacts whose path crosses the expected position of MH370 it’s possible to spot moments when the aircraft formed a reflector for the radio waves. These contacts can then either confirm positions already estimated using other methods, or even provide further course points. It’s an impressive demonstration of the unexpected data that can lurk in a trove such as the WSPR logbook, and also that while messing about on the airwaves the marks we leave behind us can have more benefit than simply bragging rights over the DX we’ve worked.

If this WSPR business intrigues you, then have a read of the piece in our $50 Ham series about it.

Header: Laurent ERRERA from L’Union, France, CC BY-SA 2.0.

[via Southgate ARC]

Compute Like It Is 1975: 6th Edition Unix Reborn

If you crave experiencing or reliving what computing was like “back then” you have a lot of options. One option, of course, is to load an emulator and pretend like you have the hardware and software you are interested in. Another often expensive option is to actually buy the hardware on the used market. However, [mit-pdos] has a different approach: port the 6th edition of Unix to RISC-V and use a modern CPU to run an old favorite operating system.

It isn’t an exact copy, of course, but Xv6 was developed back in 2006 as a teaching operating system at MIT. You can find resources including links to the original Unix source code, commentary on the source code, and information about the original PDP 11/40 host computer on the project’s main page.

Continue reading “Compute Like It Is 1975: 6th Edition Unix Reborn”