Oxygen Basic

Programming => Problems & Solutions => Topic started by: Brian Alvarez on December 06, 2018, 03:34:07 PM

Title: Unidentified instruction
Post by: Brian Alvarez on December 06, 2018, 03:34:07 PM
 Hello Charles. :)

 This is causing a compilation-time error:

Code: [Select]
char xyz[998997]
But this compiles fine:

Code: [Select]
char xyz[998996]
 Is there an internal limit? That number limit doesnt look like overflow...
Title: Re: Unidentified instruction
Post by: Brian Alvarez on December 06, 2018, 04:04:46 PM
It looks like something is not being cleared internally.

I have this code a few rows earlier...
Code: [Select]
MACRO MSGLC_INIT(src, trg, vt)
    MACRO .btstr(src, trg  buf)

If i add the i declaration line like this:

Code: [Select]
MACRO MSGLC_INIT(src, trg, vt)
    MACRO .btstr(src, trg  buf)
         int i = sizeof(trg) + 1

Now there is this error:

Code: [Select]
; ASM ERR: va _retval as int == [ebp-0x10]!!  Unidentified instruction: va
 ; AFTER:    .pbmain
 ; LINE:    358

Apparently after this line (around 100 lines ahead):

Code: [Select]
FUNCTION PBMAIN() AS INT
Title: Re: Unidentified instruction
Post by: Charles Pegge on December 06, 2018, 08:08:21 PM
Hi Brian,

One of your macros may be losing a crlf so that one line gets attached to the line before.
Title: Re: Unidentified instruction
Post by: Brian Alvarez on December 06, 2018, 09:31:09 PM
Thanks Charles, i will check that and come back. :)