Skip to content
Where AB3 mode differs from AmiBlitz3

Where AB3 mode differs from AmiBlitz3

Before this page you should know what AB3 mode supports (Language additions).

AB3 mode is compared with AmiBlitz3 v3.14.0 by compiling the same sources with both, on the same emulated machine, and comparing what the programs do. Where the results differ, the reason is almost always a bug of AmiBlitz3’s compiler, and AB3 mode does what AmiBlitz3 is meant to do rather than repeat the bug. This page lists those cases, so that a program that works with AB3 mode but not with AmiBlitz3, or the other way round, is not a surprise. The features AB3 mode lacks are on the previous page.

Compiling from the command line

CaseAmiBlitz3AB3 mode
A compile error in some sourcesreturn code 0 and “A unknow error happend!”return code 10
A text include whose last line has no line endthe last line is lostthe last line is compiled
A line of 250 characters or more in the main sourcethe rest of the source is lostthe line is cut, the following lines are compiled
A program compiled without the debugger presentno runtime error checking, #__debug is 0, Stop is left outruntime error checking as the options say; Stop as in Blitz Basic 2
Data in the Chip section that points to other labelswrong relocationscorrect relocations

Strings

CaseAmiBlitz3AB3 mode
\\R05*six starsfive stars
\\R03abAAAabaaab
\\R00xruns over the stringan empty text
An unknown escape, such as \\qqthe rest of the line in upper case, and a warningthe error “Unknown Escape Sequence”
A name that only begins like a known escape, such as \\__THIS_FUNCXYZtaken for the known name, the rest lostthe error “Unknown Escape Sequence”
\\__THIS_POINTERan address in AmiBlitz3’s own memorythe error “Not supported: \\__THIS_POINTER”
\\__THIS_INCLUDE after an include has endedstill the name of that includethe name of the file the line is in
\\__CODELINE in lines joined with @@the number of the first line, later lines one lesseach line’s own number
Escapes in Dc.b in lower casecopied as writtenreplaced in any case
f.f=@"AB"the four bytes stored unconvertedthe number converted to floating point
a$=@"AB"garbage“Can’t Convert Types”

Macros and line joining

CaseAmiBlitz3AB3 mode
A macro line with two Thensonly the inner If is closedboth are closed
A macro line closed with the word EndIf“‘End’ condition without condition”EndIf closes the If like End If
@@ after an operator, as in 1 + @@a syntax errorthe next line is joined
@@ on an End Macro lineignoredthe error “Joining lines with @@ does not work after End Macro”

Procedures

CaseAmiBlitz3AB3 mode
A call with seven or more parameters inside an argument of another such callthe outer call’s parameters from the seventh on are overwritteneach call keeps its own
name{} of a procedure whose seven or more parameters are all optional“Syntax error!”every parameter gets its default
A Function with a string parameter from the seventh ona wrong resultthe right result
A call that ends before the first optional parameterthe compiler hangs“Not Enough Parameters”
Function Return of a value that is not of the declared NewTyperefusedaccepted (the check is not made yet)