Re: [BLACKBOX] Limitation for code procedure size in BlackBox

From: [at]} <Marc>
Date: Tue, 1 May 2012 06:22:23 +0000

----boundary-LibPST-iamunique-1097051118_-_-
Content-type: text/plain

Dear Oleg,

Here the response to your question from last week from my colleaugue Beat Heeb who is maintaining the BlackBox compiler:

> Limitation for code procedure size in BlackBox
>
> As you know, we can use this code procedures as:
>
> IMPORT SYSTEM;
> PROCEDURE [code] Name*
> 01H, 02H, 03H, 04H, 05H, 06H, 07H, 0FFH,
> (* ... *)
> 08H, 09H, 0AH, 0BH, 0CH, 0DH, 0EH, 0FFH;
>
> In experimental way I has found a limitation.
> Maximal size of such procedures are 254 bytes.
>
> I would like to remove this limitation in my BlackBox
> building (XDev). What can you say about the reason
> of this limitation?

It is a restriction of the compiler.

The code of a code procedure is stored in object.conval.ext. This is byte array of arbitrary size but the number of bytes used is stored in the first byte (ext^[0]) and thus restricted to 0..255.

To change that you would have to change how this length is stored. Search for "CProc" in all compiler sources.

Kind regards,
Marc


________________________________________
From: BlackBox [BLACKBOX{([at]})nowhere.xy
Sent: Thursday, April 26, 2012 08:46
To: BLACKBOX{([at]})nowhere.xy
Subject: [BLACKBOX] Limitation for code procedure size in BlackBox

2.
Limitation for code procedure size in BlackBox

As you know, we can use this code procedures as:

IMPORT SYSTEM;

PROCEDURE [code] Name*
   01H, 02H, 03H, 04H, 05H, 06H, 07H, 0FFH,
   (* ... *)
   08H, 09H, 0AH, 0BH, 0CH, 0DH, 0EH, 0FFH;

In experimental way I has found a limitation.
Maximal size of such procedures are 254 bytes.

I would like to remove this limitation in my BlackBox
building (XDev). What can you say about the reason
of this limitation?

Thanks.

--
Oleg N. Cher
http://zx.oberon2.ru/
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1097051118_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: att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OT0ZGIEJMQUNLQk9Y
IiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5z
dWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8g
TElTVFNFUlZATElTVFMuT0JFUk9OLkNIXHBhcg0KfQ=
----boundary-LibPST-iamunique-1097051118_-_---
Received on Tue May 01 2012 - 08:22:23 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:03 UTC