31
Sol_Asm / Some questions
« Last post by avcaballero on July 12, 2016, 09:15:05 AM »Hello, I have playing a bit with sol-asm. I have tried to create without success a dib section, maybe I did something wrong. I attach the source if anyone may help.
Besides, there are some other things I found:
* Compiler doesn't allow to initialize a structure variable with a negative number (it says it is too big). In this case miDIBInfo.biHeight = -cdYSize
* Is there a way to get the size of a structure?
* When you use a structure variable you need first to get its location in ESI. The solasm struc reminds me a lot to nasm structs. There, we can use [stvar + stName.Field], so you can save the "mov esi, stvar"
* Though it can be done with external links, it would be good to compile resources, as icons, etc.
I liked solasm, thank you.
Besides, there are some other things I found:
* Compiler doesn't allow to initialize a structure variable with a negative number (it says it is too big). In this case miDIBInfo.biHeight = -cdYSize
* Is there a way to get the size of a structure?
* When you use a structure variable you need first to get its location in ESI. The solasm struc reminds me a lot to nasm structs. There, we can use [stvar + stName.Field], so you can save the "mov esi, stvar"
* Though it can be done with external links, it would be good to compile resources, as icons, etc.
I liked solasm, thank you.