Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra option ARRLEN in Ofront.par #20

Closed
Oleg-N-Cher opened this issue Aug 2, 2016 · 1 comment
Closed

Extra option ARRLEN in Ofront.par #20

Oleg-N-Cher opened this issue Aug 2, 2016 · 1 comment

Comments

@Oleg-N-Cher
Copy link
Owner

Oleg-N-Cher commented Aug 2, 2016

I've added to Ofront+ the following feature.

Size of an array length had always the type LONGINT. It was good for LONGINT 32 bits, but LONGINT 64 bits seems too many for this usage.

So I added the ability to specify the type of array length in Ofront.par

ARRLEN 2

or

ARRLEN 4

or

ARRLEN 8

It is also very useful for old platforms where are restrictions on the size of the segment, etc. For example, now we can limit a string size to 127 bytes (for Z80), or to 32767 bytes (for DOS). There is no necessity to use LONGINT, even if LONGINT is 32 bits, when INTEGER or SHORTINT is enough.

The option ARRLEN is not necessary. If it's not specified in Ofront.par, the LONGINT type will be used as before.

P.S.

Unfortunately, there are restrictions on the placement position of the option ARRLEN in the file Ofront.par. The sequence of these options was firmly fixed, and I did not change the order of work with it. Therefore the option ARRLEN should be located between RECORD and ENDIAN.

RECORD  1   1
ARRLEN  4
ENDIAN  1   0
@Oleg-N-Cher
Copy link
Owner Author

fcd612d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant