[comp.sys.handhelds] Explorations.....

CW%APG.PH.UCL.AC.UK@pucc.PRINCETON.EDU (04/02/91)

         Jim,
         Thanks. 371D is pefixed machine code. Is the prefixed machine
         code at 3685 commented in your listing?

               Conrad

cloos@acsu.buffalo.edu (James H. Cloos) (04/03/91)

In article <4595EC4AA0002141@gacvx2.gac.edu> CW%APG.PH.UCL.AC.UK@pucc.PRINCETON.EDU writes:
|
|         Jim,
|         Thanks. 371D is pefixed machine code. Is the prefixed machine
|         code at 3685 commented in your listing?
|
|               Conrad
3685h is listed as a known entry point but w/o a name.  What's it do?
(PS, looks like 3685 is there c/o Rick, again.)

-JimC
--
James H. Cloos, Jr.		Phone:  +1 716 673-1250
cloos@ACSU.Buffalo.EDU		Snail:  PersonalZipCode:  14048-0772, USA
cloos@ub.UUCP			Quote:  <>

bson@rice-chex.ai.mit.edu (Jan Brittenson) (04/03/91)

In a posting of [2 Apr 91 20:44:34 GMT]
   cloos@acsu.buffalo.edu (James H. Cloos) writes:

 > 3685h is listed as a known entry point but w/o a name. What's it do?
 > (PS, looks like 3685 is there c/o Rick, again.)

   I will let Conrad describe what it does - he brought the topic up
and he's much better at describing things than I am, anyway.

   But. There are several useful ML routines used by that PMC.
Instead, I will describe their interfaces.


	381c	- Examine list of short (aka system binary).

		In:
		  A.A	- Address of list type prefix (aka prolog)

		Out:
		  D.A	- # of elements

		Trashes:
		  C.A, A.A, D0


	3878	- Get next short.
		  Picks next short from @D0. Works with both
		  direct and indirect objects.

		In:
		  D0	- Address of short - 5

		Out:
		  D0	- Address of next short - 5
		  C.A	- Short

		Trashes:
		  A.A


	387b	- Same as 3878, but D0 starts by pointing to the first
		  element.

		In:
		  D0	- Address of short

		Out:
		  D0	- Address of next short - 5
		  C.A	- Short

		Trashes:
		  A.A

	
	3991	- Short multiplication.

		In:
		  A.A	- n
		  C.A	- m

		Out:
		  B.A	- n*m  (unsigned)


	3968	- Get number of elements in n-dimensional array.

		In:
		  D1	- Address of Array type prefix

		Out:
		  A.A	- Size, in elements

		Trashes:
		  D1, D.A, C.A, B.A, RSTK(1)

						-- Jan Brittenson
						   bson@ai.mit.edu