flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > error: code cannot be generated |
Author |
|
Jin X 14 Oct 2019, 12:25
Now I've done something like this:
Code: org 0xF0 ; . . . if some and 0xFF = 0 mov ah,some / 256 else mov ax,some end if ; . . . if some and 0xFF = 0 adc dl,al else adc dl,0 end if align 16 some: This simple code is compiled ok. But more complex (with extra conditions, more code and so on) can't be compiled. |
|||
14 Oct 2019, 12:25 |
|
Tomasz Grysztar 14 Oct 2019, 12:35
This error message means that the assembler was not able to find a stable solution within a given limit of passes. Sometimes the solution may not exist at all, and even if there was one and the number of passes was unlimited, the assembler might still not be able to find it.
You can learn more about it my article about optimistic multi-pass assembly. |
|||
14 Oct 2019, 12:35 |
|
guignol 15 Oct 2019, 06:16
how to brand a stranger from russia which tries to fit a 16-bit value into a single byte?
and what's the point for tomasz answering such nano machines anyway? |
|||
15 Oct 2019, 06:16 |
|
MatQuasar 27 Apr 2024, 23:23
Anohter example which resulted in "code cannot be generated" error message:
Code: db 1 a = $ - a |
|||
27 Apr 2024, 23:23 |
|
revolution 28 Apr 2024, 03:53
Perhaps the simplest example is this?
Code: x=x-1 |
|||
28 Apr 2024, 03:53 |
|
MatQuasar 28 Apr 2024, 09:26
revolution wrote: Perhaps the simplest example is this? Wah, that is short! |
|||
28 Apr 2024, 09:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.