This repository contains assembly implementations for graphical rendering on two architectures:
- RISC-V: Line drawing using the Xiaolin-Wu algorithm on a
.bmpfile. - x86: Rendering Mandelbrot set.
This folder contains an implementation of the Xiaolin-Wu antialiased line-drawing algorithm in RISC-V assembly. The program:
- Draws an anti-aliased line on a .bmp image.
- Uses floating-point calculations for smooth gradient transitions.
- Modifies pixel brightness to create a visually appealing effect.
- Assemble the code using a RISC-V assembler (e.g., GNU
riscv64-unknown-elf-as). - Execute the binary in a RISC-V emulator (such as QEMU).
- Open the generated
.bmpfile in an image viewer to see the result.
In ---------> Out
--------->
This folder contains x86 assembly implementations for generating:
- Mandelbrot set – A fractal visualization of complex numbers.
The program:
- efficiently combines x86 assembly with C programing
- Iterates over each pixel and applies fractal formulas to determine color intensity.
- Uses floating-point arithmetic (FPU/SSE).
- Outputs the result as a bitmap image.
- Assemble the code with
nasm(Netwide Assembler):nasm -f elf32 mandelbrot.asm -o mandelbrot.o


