An open API service indexing awesome lists of open source software.

https://github.com/ximaz/intel_x8086_clock

This repository holds an Intel x8086 assembly code destinated to get assembled by NASM, but can be modified for any other assemblers. It's meant to be executed on DOSBox
https://github.com/ximaz/intel_x8086_clock

asm asmx86 clock dosbox dosbox-emulator dosbox-staging dosbox-x nasm nasm-assembler nasm-assembly time x8086

Last synced: 4 months ago
JSON representation

This repository holds an Intel x8086 assembly code destinated to get assembled by NASM, but can be modified for any other assemblers. It's meant to be executed on DOSBox

Awesome Lists containing this project

README

          

# Intel x8086 (NASM) DosBox Clock Reader

The program held in `program.asm` displays the time of the DosBox's clock with the following format : `HH:MM:SS`.

# Usage

### Install DOSBox emulator
Go to this website : [https://www.dosbox.com](https://www.dosbox.com/) and grab the DOSBox' version which fits your requirements.

### Compile the program
Install the [https://www.nasm.us/](https://www.nasm.us/) assembler and compile the `program.asm` file via the command : `nasm -fbin program.asm -o program.com`

[DOSBox syscall documentation](https://www.pcjs.org/documents/books/mspl13/msdos/encyclopedia/section5/)

### Run DOSBox
- Run the DOSBox emulator
- Mount the folder which contains the `program.com` that you compiled earlier : `Z:> mount C: C:\Users\user\Desktop\intel_x8086_clock`
- Go to the mounter folder : `Z:> C:`
- Run the `program.com` program : `C:\> PROGRAM.COM`

And then, you can run your DosBox to execute the program as following :

![assets/dosbox.png](assets/dosbox.png)