> For the complete documentation index, see [llms.txt](https://ashrithsagar.gitbook.io/mc-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ashrithsagar.gitbook.io/mc-lab/readme.md).

# MicroController-Lab

![GitHub](https://img.shields.io/github/license/AshrithSagar/MicroController-Lab) ![GitHub repo size](https://img.shields.io/github/repo-size/AshrithSagar/MicroController-Lab) [![GitHub Repository](https://img.shields.io/badge/GitHub-MicroController%20Lab-tan)](https://github.com/AshrithSagar/MicroController-Lab)

Using Intel 8051 Assembly language

<details>

<summary>File naming convention</summary>

* E2\_E5 => *E*xperiment *2*, *E*xample *5*
* E4\_X1 => *E*xperiment *4*, *E*xercise *1*
* E3\_P6 => *E*xperiment *3*, *P*ractice problem *6*

</details>

## 8051 Assembly setup

### On macOS

Refer to this [8051 Assembly Workflow in macOS](https://mlg556.github.io/posts/8051-assembly-workflow-in-macos/8051-assembly-workflow-in-macos.html) to setup tools for 8051 Assembly.

#### Setup

1. [C51ASM compiler](https://mlg556.github.io/downloads/2019-02-14-8051-assembly-workflow-in-macos/c51asm_macosx_1-2.zip)
2. [8051 emulator](http://sol.gfxile.net/8051.html)

#### Running

```shell
c51asm my_file.asm
```

***

### On Linux

Use [as31](https://manpages.ubuntu.com/manpages/trusty/man1/as31.1.html) - An Intel 8031/8051 assembler.

#### On Debian/Ubuntu systems

```shell
sudo apt update
sudo apt install as31
as31 -h
```

***

### On Windows

Download C51 demo from [Keil-c51](https://www.keil.com/demo/eval/c51.htm).

## License

This project falls under the [MIT license](https://github.com/AshrithSagar/MicroController-Lab/blob/main/LICENSE).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ashrithsagar.gitbook.io/mc-lab/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
