flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 18 Oct 2015, 00:00
There is no point testing that in any version less than 1.71.14. Postpone was introduced in version 1.71.14.
And for the "code cannot be generated" error, we will need to see your code to see what you have done. Usually this error is because of some variable length code or definition that oscillates between two values. |
|||
![]() |
|
Trinitek 18 Oct 2015, 00:20
Hmm, it turned out to be a bad if statement in an unrelated section. The two errors from the different versions aren't related. Nothing to see here.
|
|||
![]() |
|
shutdownall 18 Oct 2015, 08:30
What sould happen exactly after postpone ?
Is any code following ? I think the combination of postpone and align could maybe cause problems. |
|||
![]() |
|
JohnFound 18 Oct 2015, 08:31
"Code can not be generated" is an error related to the whole source, not to the postpone macro itself.
|
|||
![]() |
|
Trinitek 18 Oct 2015, 09:05
If anyone is interested, here are the code snippets of interest.
Code: ; palette.inc macro color cName*, r*, g*, b* { c.#cName = paletteIndex_ postpone \{ if ~ defined c_palette_ | defined @f @@: c_palette_: end if c.#cName#.palette: db r shr 2, g shr 2, b shr 2 \} paletteIndex_ = paletteIndex_ + 1 } color ALPHA, 0, 0, 0 color BLACK, 0, 0, 0 color BLUE, 0, 0, 255 color DARKBLUE, 0, 0, 127 color LIGHTBLUE, 127, 127, 255 Code: ; At the end of the main file of the project, ricochet.asm postpone { align 16 endOfProgram: } |
|||
![]() |
|
JohnFound 18 Oct 2015, 14:51
Trinitek, this code compiles for me. If you get "code cannot be generated", there is something wrong elsewhere in your code.
|
|||
![]() |
|
Trinitek 18 Oct 2015, 18:03
Oh no, I've already fixed it. I had made a syntax mistake in that if statement. I just wanted to post it to show what was going on and what I was working with.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.