NASM Assembly: 10-Shape Console Menu Integration
Task:
– Implement a simple console menu on NASM (x86_64) with a selection of 10 shapes.
– When a menu item is selected, the program should call the corresponding pre-existing drawing procedure and display the shape in the console.
What is already available:
– 10 separate NASM files with drawing procedures for each shape (rectangle, square, diamond, staircase, house, cross, star, pentagon, triangle, heart).
– Inside each procedure, the input of necessary parameters (size, color, etc.) and the drawing algorithm are configured.
What needs to be done:
- Create a single file main.asm with sections .data, .bss, and .text.
- Add an entry point label (_start) and organize the display of the text menu:
- Read the user's choice (a digit from 1 to 10), verify input correctness, and in case of an error, display a message and terminate the program.
- If the choice is correct, jump to the section (.do_shapeX), where the corresponding shape's drawing procedure will be inserted.
- At the end of each procedure — a unified call to syscall exit(0).
- Ensure that all labels and buffers inside the combined file have unique names to avoid conflicts.
Result:
– One file main.asm with the menu, input, switch, and 10 inserted procedures.
Current freelance projects in the category Embedded Systems & Microcontrollers
Software development for Arduino (RF modules 3–7.5 GHz, automatic frequency scanning)It is necessary to develop a system on Arduino for the automatic search of active analog video signals and the automatic tuning of the transmitter to the detected frequency.It is planned to use three separate transceiver modules: 3000–4200 MHz; 4900–6000 MHz; 6100–7500… C & C++, Embedded Systems & Microcontrollers ∙ 1 day 4 hours back ∙ 4 proposals |
Development of an intelligent control system for an oil refinery
5822 USD
We are looking for an experienced team or specialists to implement an industrial AI platform for monitoring and managing oil production (sunflower, cold and hot pressing). Stack and technologies: Beckhoff TwinCAT 3 (Structured Text) · Python 3.11 · Node-RED · InfluxDB 2 ·… AI & Machine Learning, Embedded Systems & Microcontrollers ∙ 1 day 20 hours back ∙ 27 proposals |
Reprogramming of an automatic industrial press
113 USD
Describing the operating principle in effect, as well as the changes that need to be made Please suggest prices Operating principle of the equipmentThe equipment consists of three main units that operate synchronously:stepper motor feeder (feeder);die for punching… Embedded Systems & Microcontrollers, Engineering ∙ 7 days 3 hours back ∙ 4 proposals |