Uploaded December 2021 | Updated September 2026, 5 hours ago
#doscember in this #dos #x86 #assembly tutorial, you wil learn how to draw rasterbars in VGA under DOS.
This will work on XT-Pentiums as long as theres a VGA card.
For DOSBox be sure to set
machine=vgaonly
Code:
github.com/rdoetjes/tuts/tree/main/dos/BARS
RASTER.ASM is the foundational code, on which all other code is build, and will only draw a single raster line.
RASTER2.ASM will show how to turn that single line in to a bar with a certain width
RASTER3.ASM will show how to shade the bar using a lookup table
RASTER4.ASM will show how to make the bar move along sine path, using a pre-calculated sine table.
DosBox environment:
subliminal-artist.com/assets/dosbox.zip
#doscember in this #dos #x86 #assembly tutorial, you wil learn how to draw rasterbars in VGA under DOS.
This will work on XT-Pentiums as long as theres a VGA card.
For DOSBox be sure to set
machine=vgaonly
Code:
github.com/rdoetjes/tuts/tree/main/dos/BARS
RASTER.ASM is the foundational code, on which all other code is build, and will only draw a single raster line.
RASTER2.ASM will show how to turn that single line in to a bar with a certain width
RASTER3.ASM will show how to shade the bar using a lookup table
RASTER4.ASM will show how to make the bar move along sine path, using a pre-calculated sine table.
DosBox environment:
subliminal-artist.com/assets/dosbox.zip










