Author Topic: Unidentified instruction  (Read 66 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Full Member
  • ***
  • Posts: 153
    • PluriBASIC
Unidentified instruction
« 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...

Brian Alvarez

  • Full Member
  • ***
  • Posts: 153
    • PluriBASIC
Re: Unidentified instruction
« Reply #1 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

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3909
    • Oxygen Basic
Re: Unidentified instruction
« Reply #2 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.

Brian Alvarez

  • Full Member
  • ***
  • Posts: 153
    • PluriBASIC
Re: Unidentified instruction
« Reply #3 on: December 06, 2018, 09:31:09 PM »
Thanks Charles, i will check that and come back. :)