Re: [BLACKBOX] Overflow checking (was: Type transfer)

From: [at]} <Chris>
Date: Tue, 18 Oct 2011 22:54:25 +1030

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

>-----Original Message-----
>From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>Campbell, Robert (SELEX GALILEO, UK)
>Sent: Tuesday, 18 October 2011 10:09 PM
>To: BLACKBOX{([at]})nowhere.xy
>Subject: Re: [BLACKBOX] Overflow checking (was: Type transfer)
>
>Chris
>
>I might boast about my assembler prowess (I was inordinately
>proud of my 0-byte effort), but your 1-byte example is beyond me.
>
>Give us a clue: what is 0CEH?
>

Don't ask me - I cheated and peeked into the compiler to see how it does it.
If you start from the compiler options in DevCompiler:

  ...
  ELSIF s.char = "+" THEN INCL(opts, allchecks)

the trail will eventually lead you to the module DevCPV486 where you will
find:

  IF ovflchk THEN DevCPE.GenByte(0CEH) END;

I was then inspired by your zero byte example but went one better ;-)

Fortunately, Bernhard has now explained it to us *why* it works ...

Cheers,
Chris


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-714519849_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLVx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lxwYXINClxw
YXINCiAgSUYgb3ZmbGNoayBUSEVOIERldkNQRS5HZW5CeXRlKDBDRUgpIEVORDtccGFyDQpccGFy
DQpJIHdhcyB0aGVuIGluc3BpcmVkIGJ5IHlvdXIgemVybyBieXRlIGV4YW1wbGUgYnV0IHdlbnQg
b25lIGJldHRlciA7LSlccGFyDQpccGFyDQpGb3J0dW5hdGVseSwgQmVybmhhcmQgaGFzIG5vdyBl
eHBsYWluZWQgaXQgdG8gdXMgKndoeSogaXQgd29ya3MgLi4uXHBhcg0KXHBhcg0KQ2hlZXJzLFxw
YXINCkNocmlzXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5k
IGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RT
Lk9CRVJPTi5DSFxwYXINCn0=
----boundary-LibPST-iamunique-714519849_-_---
Received on Tue Oct 18 2011 - 14:24:25 UTC

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