Govind’s Status Report (11/21)

This week I made it possible to run DOS .EXE programs from our command prompt. A small test program checked that it could find its data after loading and read the arguments I typed. It returned the expected exit code of 42 in both the emulator and a simulation of our own CPU.

I added support for commands like DIR *.TXT to list just the text files. DOS programs can also check free disk space and look up file details. I fixed the cursor so the underline follows the text as it moves. All 36 software test runs passed in the emulator, and I pushed the changes to GitHub for review.

I prepared two existing DOS programs for testing on our FPGA board. We can run both without changing their code. In a simulation of the board, HELLO.COM printed its greeting and EXIT42.COM returned 42. Both returned to the command prompt on startup and again after a reset.

My software work from last week is on schedule. Next week I plan to run both programs on the actual board with the team and check that they still work after a reset. I’ll also give the larger .EXE test more time in simulation to see if it starts. Booting from a microSD card is still open.

Govind’s Status Report (11/14)

I spent the first part of this week preparing for and taking part in our interim demos. My contribution was the BIOS and disk images, including the build that boots and runs DEMO.COM automatically from an embedded disk image. I also reran the SDRAM cold-boot and reset tests in RTL simulation. Both runs read 45 sectors and confirmed that DEMO.COM exited successfully.

After the demos, I finished the BIOS screen and system queries and the timer diagnostic I had deferred last week. In MartyPC, I verified that a program could query the screen and available memory, and that keyboard input still worked while the timer was running. I also fixed a build error that prevented the DOS .EXE tests from running on a fresh checkout. All 23 profiles in the software regression passed, and I submitted the three changes for review.

I also ran two COM programs built from unchanged DOSMC examples through our shell in MartyPC. HELLO.COM printed its greeting, and EXIT42.COM returned exit code 42. The software work I deferred for the demo is back on schedule. Standalone boot from microSD, physical keyboard input, and running these programs on the FPGA are still open.

Next week I plan to let the shell launch a DOS .EXE and test that a small program’s segment references are relocated correctly and that it returns to the prompt. I’ll also prepare the two COM examples for a board test as keyboard and storage integration progresses.

Govind’s Status Report (11/7)

This week I prepared the software for the interim demo. I packaged the BIOS and disk images for both demo profiles and verified in the emulator that the inputless build boots and runs DEMO.COM automatically. I also spent time physically testing the existing code that we set up for the interim demo on an actual monitor.

I also pushed the changes that move our 640 KiB of conventional RAM to the board’s SDRAM. In RTL simulation, both a cold boot and a reset read 45 sectors from the embedded disk image, ran DEMO.COM, and confirmed that it exited successfully. I also checked SDRAM byte writes, refresh, and reset behavior.

My software work is done for Monday’s demo. I moved the BIOS screen-query and timer work back to prioritize the demo. Next week I’ll help repeat the boot and reset tests on the board, then implement and test the BIOS screen queries and resume the timer diagnostic.

Govind’s Status Report (10/31)

This week I updated the BIOS to support Ben’s disk-controller interface. I added a selectable storage backend that handles sector reads, address translation, controller errors and timeouts, and built a separate ROM for hardware integration. I also wrote a controller model and disk diagnostic to test the actual BIOS and bootloader against this interface. These changes are pushed to GitHub.

Validation passed 32 emulator/model test profiles and 28 host tests, including successful reads, error recovery and timeout handling. I updated the dependent software branches and verified that fresh builds from all 15 branches produced the same hardware-facing ROM. This also caught a build-directory issue, which I fixed. The test record documents the results. Physical SD access and FPGA boot remain unverified. I also prepared an interim-demo plan and parts budget.

The shell and COM demonstration remain working in the emulator. My BIOS screen-query and timer work is behind last week’s plan because I prioritized the storage-interface mismatch. To catch up, I will focus on the common screen queries and timer diagnostic while preparing the ROM and disk tests for team integration. Optional EXE work remains deferred.

Next week I plan to add and test the BIOS screen queries and basic timer services, provide the hardware-facing ROM and disk diagnostic to the team, and rehearse the interactive shell/COM demonstration for the interim demo. Full hardware boot still depends on integration with the custom CPU, storage transport and peripherals.

Govind’s Status Report (10/24)

I spent the first half of the week on the ethics assignment.

This week I got keyboard input and a basic shell working in the emulator, which were my goals from last week. I added the BIOS and DOS calls needed for programs to read typed input and print text. I can now type commands to list files and run HELLO.COM, enter a name, get a greeting, and return to the shell when the program finishes. I also added TYPE to display a file’s contents and made sure file-read errors return to the prompt. These changes are pushed to GitHub.

The full emulator regression passed all 23 profiles and 28 host tests. Focused tests passed 40 service groups, keyboard delivery through the modeled devices, repeated COM launches, exact display of a fragmented 10 KB file, and repeated disk-error recovery. An initial error test exposed lost keys when typing during BIOS disk-error polling; that limitation is documented. Commands and results are recorded in the repository’s dated test records. These results do not establish FPGA operation or compatibility with existing third-party COM programs.

My software work is on track for the interim demo shell/COM checkpoint; custom-CPU and peripheral integration remain dependencies for the hardware demonstration. Next week I plan to add common BIOS screen queries and timer services with guest diagnostics, and prepare small BIOS/disk tests for integration with the team’s CPU and peripherals. I am keeping optional EXE work deferred.

Govind’s Status Report (10/10)

This week I extended the MZ EXE loader beyond its original 64 KiB limit to use the existing 320 KiB program arena. I added reads and relocations across segment boundaries, checked code and stack addresses, and tested recovery from disk failures after partial loads. The full emulator regression passed all 22 guest profiles and 23 host tests. An earlier run timed out at 90 seconds; the unchanged code passed with an explicit 180-second process deadline. Evidence: https://github.com/JoshuaSmith1227/ibm-pcxt-fpga/pull/18.

The loader extension is complete. The November 2 shell/COM milestone still needs keyboard input and a minimal shell. Next week I will prioritize those features and their emulator tests while CPU and memory integration continues.

Govind’s Status Report (10/3)

Progress this week

I spent about 10 or more hours on the project this week, focusing on getting our BIOS and DOS software started and tested. I also spent four hours in class peer reviewing design review presentations, and additional time preparing for our presentation.

Our software can now start in MartyPC, an emulator that acts like an older IBM PC, using our own BIOS. The BIOS sets up the machine and reads our bootloader from a virtual disk. The bootloader then loads our kernel into memory and starts it. Earlier tests used an existing BIOS called GLaBIOS, but the current custom boot tests use our own BIOS.

I also worked on the C compiler setup and the code needed to start C programs without an existing operating system. This lets us write most of the kernel in C while using assembly for the low-level startup and hardware access.

The kernel can now find files by name and open, read, and close them. These operations are also available through a small set of DOS-compatible requests. Tests cover reading files spread across different parts of the disk, reaching the end of a file, opening missing files, and handling damaged disk data. This is still a test system: keyboard input, a command prompt, and loading existing DOS programs are not implemented yet.

Finally, I worked on making the implementation easier to understand and review. The documentation now explains how the emulator, BIOS, bootloader, and kernel connect, and the assembly comments explain what each instruction does.

Evidence:
– [Software explanation and review guide](https://github.com/JoshuaSmith1227/ibm-pcxt-fpga/blob/govind/software-review/docs/software-review.md)
– [Custom BIOS boot test results](https://github.com/JoshuaSmith1227/ibm-pcxt-fpga/blob/govind/software-review/docs/test-results/2026-10-03-custom-boot.md)
– [DOS file-service test results](https://github.com/JoshuaSmith1227/ibm-pcxt-fpga/blob/govind/software-review/docs/test-results/2026-10-03-dos-files.md)

Schedule

My progress is on track for the initial software setup and BIOS testing in our proposed schedule. Basic DOS file operations have also started. However, there is still substantial work before we can run existing programs, and all software testing so far has been in the emulator rather than on our FPGA.

Next week

I plan to check the display output directly, add basic keyboard input, and begin loading a small test program from disk and returning to the kernel when it finishes. I will also review the hardware interfaces with the team, especially how the BIOS will access storage on our board.

Govind’s Status Report (09/26)

This week, I spent most of my time working on the design presentation and practicing, since I will be presenting for our team. I focused on explaining how the CPU, memory, peripherals, and software fit together, along with our design choices and testing plan. I also worked on making the presentation clearer and keeping it within the time limit.

I followed up on our discussion about using Vitis HLS to generate RTL from C/C++ for testing. The main issue is that converting our BIOS or DOS into hardware would bypass the custom 8088 that is supposed to run it. HLS can test the hardware it generates, but that would not tell us whether our software runs correctly on Josh’s CPU or works with our memory and peripherals. For our project, maintaining that separate implementation would add work without answering the main integration questions.

I identified Open Watcom v2 as a candidate compiler for our software. Its 16-bit C/C++ compilers can generate 8088-compatible instructions using the -0 option. We would still need assembly startup code and a linker configuration for the BIOS ROM. My next step is to validate this with a small program before building more software around it.

I also looked into MartyPC for testing before our hardware is ready. My proposed setup would load our BIOS ROM and a disk image containing our boot code, DOS, and test programs. A build option could select between an emulator-compatible disk driver and a driver for Ben’s microSD interface. This would let me test software behavior, including loading files from an emulated disk, while developing the hardware separately. It would not verify our CPU or storage controller; those still need RTL and board-level tests. I have researched this setup but have not completed it yet.

My software work is behind the original schedule, which called for MartyPC setup during the week of September 14 and BIOS/disk-adapter tests during the week of September 21. To catch up, next week I will prioritize compiling a minimal 8088 program, loading our own ROM in MartyPC, and beginning disk-read tests. I will also work with Ben on the storage interface. These are prerequisites for the DOS file-service tests, so I will update that milestone based on what is working next week.

Govind’s Status Report (09/19)

This week, I primarily worked on the project proposal slideshow for our FPGA-based IBM PC/XT recreation. I also began expanding its high-level software design into the individual components shown in the diagram below. These include BIOS device support, DOS file and program services, and the shell, with .COM applications as the required target and .EXE support as a stretch goal.

To guide implementation, I looked into Microsoft’s BIOS call reference, DOS system-call reference, and Ralf Brown’s Interrupt List. These document the software-interrupt interfaces, arguments, results, and error behavior that our software needs to support. My implementation plan is to work from basic BIOS and disk access upward to filesystem operations, program loading, and the shell. I plan to test each component using known inputs and expected outputs before integrating the next layer.

MartyPC will provide an emulated PC environment for developing our software and comparing program behavior. After verifying the setup, I plan to load a minimal custom ROM and inspect a known result in memory before adding BIOS functionality. Our FPGA-specific device interfaces will also require testing in RTL simulation and on the board.

I am behind on the scheduled MartyPC setup and sample code because this week’s effort went toward the proposal and design. Next week, I aim to complete the emulator setup, establish the custom-ROM test, and agree on the disk-access interface so I can begin BIOS and storage-adapter implementation.

Image credit: Created with GPT-6 Astra.