🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #242

BASM - Type to binary

#242
From: Robert AH Prins
Date: Fri, 23 Jul 1999 00:00
22 lines
1518 bytes
To avoid having to load pointers over and over again, the program uses a
GETMEM'ed array, I use BASM, and this works without a glitch, until...
I had to change the size of the elements from 8 to 16 and didn't realize
that I also needed to change a "shl  cx, 3" into "shl  cx, 4". I spend
ages trying to find out what was wrong - the equivalent code in Pascal
continued to work, be it rather more slowly.

Does anyone know, short of what I've done now, adding a constant with
the required shift value, if there is a way to get the base-2 log of
sizes of datastructures in BASM. (Obviously restricted to sizes that are
powers of 2...)

Thanks,

Robert
--
Robert AH Prins
prinsra@willis.com


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Technical Details
Message-ID: <7naolk$5j$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,1574494622d1a1c7,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,1574494622d1a1c7,start
X-Google-Attributes: gid108ebd,public
From: Robert AH Prins <prinsra@williscorroon.com>
Subject: BASM - Type to binary
Date: 1999/07/23
Message-ID: <7naolk$5j$1@nnrp1.deja.com>
X-Deja-AN: 504529885
X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 193.130.234.1
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Fri Jul 23 22:00:23 1999 GMT
X-MyDeja-Info: XMYDJUIDprino
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal
X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I)