🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #366

Accessing multi-D C arrays in ASM routine

#366
From: Sean Starkey
Date: Tue, 11 Aug 1992 05:28
26 lines
1353 bytes
Hello you programming gods out there in netland.  I have a question that has
been bugging me for a while, and I can't find the answer in any reference
that I have.

I need to access a two dimensional array declared in C from a ASM routine.
To throw a wrench in the works, this ASM is a serial interrupt handler.  I
have already written the routine in C, but want to convert to ASM to cut
down on the speed.  (Those damn 32400 baud RS-422 lines.)

For example the following C declaration:

char rx_buffer[6][256]

I want to be able to put in my character from the serial port into the above
array from assembly.

Thanks for the info...

Please respond by Email and I will post a summary.

	Sean Starkey			starkey@netcom.com
Home:	444 Saratoga Ave.	Work:	Process & Cryogenic Services, Inc.
	Apt. 19K			2220 Martin Ave.
	Santa Clara, CA 95050		Santa Clara, CA 95050
	(408) 985-1454			(408) 727-3700
Technical Details
Message-ID: <3b3mv_r.starkey@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!apple!apple!netcomsv!netcom.com!starkey

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!apple!apple!netcomsv!netcom.com!starkey
From: starkey@netcom.com (Sean Starkey)
Newsgroups: comp.os.msdos.programmer
Subject: Accessing multi-D C arrays in ASM routine
Summary: C and ASM interface
Keywords: C, ASM
Message-ID: <3b3mv_r.starkey@netcom.com>
Date: 11 Aug 92 05:28:13 GMT
Followup-To: poster
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Lines: 26