News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

load bitmap?

Started by daydreamer, March 27, 2022, 01:20:33 AM

Previous topic - Next topic

daydreamer

Hi
wonder how to load bmp or any file in dos?
instead of tedious write lot of data in db?
Magnus
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

jj2007

include \masm32\MasmBasic\DosBasic.inc
  Init
  Make$ My$, 60000 ; let's create a fat buffer
  FileRead My$, "dd.bmp"
  .if Carry?
Print "FileRead ERROR", 13, 10
  .else
Print Str$(ax), ' bytes read from "dd.bmp" - contents:', 13, 10, 10, "["
Print My$, "]", 13, 10, 10
  .endif
  Inkey "Now you got the bitmap in My$, what will you do with it?" ; wait for a key
  Exit ; ExitProcess, DOS style
end start


30758 bytes read from "dd.bmp" - contents:

[BM&x]

Now you got the bitmap in My$, what will you do with it?


Source, exe and bmp file attached.

avcaballero

These examples read and display bmp from file and from resource and display it (windows)

http://abreojosensamblador.epizy.com/?Tarea=5&SubTarea=4&Lang=1&nivel=0&padre=0&accion=0

Theese other do the same in dos:

http://abreojosensamblador.epizy.com/?Tarea=1&SubTarea=28&nivel=0&padre=0&accion=0

daydreamer

thanks
more kinda want to know the different ways of int21h
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

tenkey

You might want to get Ralf Brown's Interrupt List: http://masm32.com/board/index.php?topic=7823

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding