News for hackers. Stuff that matters.
Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by userbinator on Thursday October 03, 2019 @06:24PM (#21152902)
I'm a little surprised that it wasn't itself written in Asm (and thus has the possibility to be self-assembling), and the binary is almost 30KB. That may seem tiny today, but in the 8086/8088 era, it's huge; the first IBM PC in its minimum configuration had only 16K RAM.

For a more "authentic" 8088 experience, you could use the assembler that came with MS-DOS 1.25, written by Tim Paterson:

https://github.com/microsoft/MS-DOS/blob/master/v1.25/source...

Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by acqq on Thursday October 03, 2019 @06:43PM (#21153031)
> I'm a little surprised that it wasn't itself written in Asm

I'm not, it's just not worth the effort.

> in the 8086/8088 era, it's huge; the first IBM PC in its minimum configuration had only 16K RAM.

It's really not needed today.

> For a more "authentic" 8088 experience, you could use the assembler that came with MS-DOS 1.25, written by Tim Paterson

The author here wanted just his own .asm sources to assemble natively, and not using nasm, and if I understand correctly they indeed depend on the features not present in the old assembler, he writes:

"nasm doesn't run over 8086/8088 processors, and I couldn't find a compatible assembler!"

It's not that he couldn't find any assembler, but that he couldn't find one that understands the features from nasm he used.

Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by tssva on Thursday October 03, 2019 @08:27PM (#21153730)
The minimum config for the IBM PC might have been 16K but this was not a common configuration and was an extremely low amount of memory even for the 8086/8088 era of PCs.
Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by dragonwriter on Friday October 04, 2019 @08:50AM (#21157092)
> That may seem tiny today, but in the 8086/8088 era, it's huge; the first IBM PC in its minimum configuration had only 16K RAM.

The minimum configuration of the first IBM PC isn't really a guide to a anything about the 8088/8086 era except the low end at the very beginning. Maxing out the 640K limit was common for 8088/8086 PC clones by the end of the era, and 30KB binaries for programming tools wouldn't be outlandish.

Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by cameldrv on Thursday October 03, 2019 @09:15PM (#21153979)
That's true but nobody bought a PC with 16K of RAM. The smallest I ever saw on a PC was 256k, and I think I might have encountered a near-clone with 128k.
Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by Narishma on Friday October 04, 2019 @08:43AM (#21157037)
64K was a pretty common configuration in the first couple of years.
Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by basementcat on Friday October 04, 2019 @12:26AM (#21154753)
IIRC 16k IBM PC could not boot DOS. You were pretty much stuck in ROM cassette BASIC.
Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by userbinator on Friday October 04, 2019 @01:29AM (#21155036)
You're right:

http://www.os2museum.com/wp/dos/dos-1-0-and-1-1/

It should be noted that DOS would theoretically be able to run on the base PC model with 16KB RAM. However, this was not an option in practice: The PC’s BIOS loaded the boot sector (from a floppy) at address 7C00h, which is 31KB, meaning that it was not possible to boot DOS on a PC with less than 32KB memory.

Re:Show HN: 8086/8088 assembler that runs over 8088 hardware... by basementcat on Friday October 04, 2019 @03:50AM (#21155655)
You got me wondering if an actual 16k IBM PC BIOS would load the boot sector into the rolled over address 0x3c00 instead of 0x7c00. Has anyone (recently) tried to actually boot PC-DOS 1.0 on an actual 16k machine?