Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #1551 > unrolled thread

Some experiments in somewhat uncharted territories

Started byBenoit0123 <bgilon@free.fr>
First post2015-03-06 12:13 +0000
Last post2015-03-31 22:03 +0000
Articles 5 — 2 participants

Back to article view | Back to comp.sys.apple2.programmer


Contents

  Some experiments in somewhat uncharted territories Benoit0123 <bgilon@free.fr> - 2015-03-06 12:13 +0000
    Re: Some experiments in somewhat uncharted territories Benoit0123 <bgilon@free.fr> - 2015-03-10 16:15 +0000
      Re: Some experiments in somewhat uncharted territories D Finnigan <dog_cow@macgui.com> - 2015-03-20 21:12 +0000
        Re: Some experiments in somewhat uncharted territories Benoit0123 <bgilon@free.fr> - 2015-03-22 21:19 +0000
    Re: Some experiments in somewhat uncharted territories Benoit0123 <bgilon@free.fr> - 2015-03-31 22:03 +0000

#1551 — Some experiments in somewhat uncharted territories

FromBenoit0123 <bgilon@free.fr>
Date2015-03-06 12:13 +0000
SubjectSome experiments in somewhat uncharted territories
Message-ID<benoit0123-1425644055@macgui.com>
Oops
I based my previous message compositing upon a non final version of the
assembly listing. One should read for the "RETOUR" subroutine:

RETOUR  LDY        #8-1

]LOOP   LDX        SVOFST,Y

        LDA        SVAREA,Y

        STA        0,X

        DEY

        BPL        ]LOOP

        BIT        FMODE
        BMI        :0
        LDA        RESVPTR instead of #RESVPTR
        LDY        RESVPTR+1 instead of #>RESVPTR
        JMP        MOVFM
:0        RTS

The disk image will be uploaded on tommorrow morning (localtime) the URL to
download will be:
http://bgilon.free.fr/apple2/JAH2.0.zip
It will contain a disk image (.do suffix for DOS 3.3 order).
Benoît


-- 
Growing old is mandatory..
growing up is optional..
But the other way round is as true.

[toc] | [next] | [standalone]


#1555

FromBenoit0123 <bgilon@free.fr>
Date2015-03-10 16:15 +0000
Message-ID<benoit0123-1426004156@macgui.com>
In reply to#1551
During the last week end, I made some improvements to JAH.
The updated version now allows to select as part of the
"Procedural Function" prepare step, a mode in order to cater
with a completely private memory area (for simple, array and string
storage).
Hence the requirement to backup and restore values of those variables from
the main program flow is gone.
Select this mode (MO% value set to 128) when:
a) you do not require a globally set variable/array within the body of the
PF:
b) you can manage to store all your variable storage needs within 512 bytes.
Howecer this size limit can be increased by reasssembling the ML portion of
the demo.
Select the classic mode (i.e. MO%  value set to 0) otherwise.
Here is the Applesoft part of the demo (edit line 2 and variable MO% setting
at its bedinning) in order to switch between modes. 

0  REM INIT THE ENVIRONMENT
1  PRINT  CHR$ (4)"MAXFILES 1": HIMEM: 37888: PRINT  CHR$ (4)"BLOAD
JAH2.0.2"
2 MO% = 128: ON MO% = 128 GOTO 3: CLEAR :S = 0:I = 0:N% = 0:S0 = 0:N0% =
0:MO% = 0
3 BA = 37888
9  REM EARLY TESTS
10  CALL BA,1000
12  REM N% = 4: CALL BA,2000: PRINT S
19  REM PREPARE STEP
20  CALL BA + 3,MO%,N%,S,2000: POKE 10,76: POKE 11,6: POKE 12,148
21  REM EXECUTE STEP
22  FOR J = 1 TO 8: PRINT J" " USR (J): NEXT : END
1000  PRINT "HELLO": RETURN
1995  REM THE 3 LINES BELOW ARE
1996  REM THE BODY OF THE P.F.
1997  REM S=FUNCTION(N)
1998  REM SUM(I), I FROM 0 TO N
1999  REM CACHE WITH N0%,S0
2000  ON  SGN (N%-N0%) + 2 GOTO 2001,2002:S = S0: FOR I = N0% + 1 TO N%:S =
S + I: NEXT :N0%  = N%:S0 = S: RETURN
2001 S = 0: FOR I = 1 TO N%:S = S + I: NEXT :N0% = N%:S0 = S: RETURN
2002 S = S0: RETURN

URL for donloading the disk image (along with the source code) is
http://bgilon.free.fr/apple2/JAH2.0.2.zip
This is a working copy of Merlin 8 DOS 3.3, the source file is named:
JAH2.0.2.s

Any feedback would be welcome.
Benoît


-- 
Growing old is mandatory..
growing up is optional..
But the other way round is as true.

[toc] | [prev] | [next] | [standalone]


#1556

FromD Finnigan <dog_cow@macgui.com>
Date2015-03-20 21:12 +0000
Message-ID<dog_cow-1426886007@macgui.com>
In reply to#1555
Benoit0123 wrote:
> 
> Any feedback would be welcome.
> Benoît
>

Hi, I downloaded your source last week and looked at it. Can you send me
some more documentation on how your code works and what it is useful for?
Either French or English is fine with me.

-- 
]DF$
Apple II Book: http://macgui.com/newa2guide/
Usenet: http://macgui.com/usenet/  <-- get posts by email!
Apple II Web & Blog hosting: http://a2hq.com/

[toc] | [prev] | [next] | [standalone]


#1558

FromBenoit0123 <bgilon@free.fr>
Date2015-03-22 21:19 +0000
Message-ID<benoit0123-1427059202@macgui.com>
In reply to#1556
D Finnigan wrote:
> Benoit0123 wrote:
>> 
>> Any feedback would be welcome.
>> Benoît
>>
> 
> Hi, I downloaded your source last week and looked at it. Can you send me
> some more documentation on how your code works and what it is useful for?
> Either French or English is fine with me.
>
pm sent to David.
BTW I plan to integrate the PF mechanism in a future version of Peersoft.



-- 
Growing old is mandatory..
growing up is optional..
But the other way round is as true.

[toc] | [prev] | [next] | [standalone]


#1569

FromBenoit0123 <bgilon@free.fr>
Date2015-03-31 22:03 +0000
Message-ID<benoit0123-1427839484@macgui.com>
In reply to#1551
JAH 2.1 has been posted on my web site, for those interested.
The URL to download is http://bgilon.free.fr/apple2/JAH2.1.zip
Briefly stated it provides the features below in addition to those offered
by v2.0.2.
The included JAHELLO Applesoft program is a sample progarm for you to get
the idea.
The source file on teh disk image is JAH2.1.s (Merlin format). 
New bits meaninful for specifying operation mode:
. b1 for specifying an Applesoft subroutine (by its begin line #) to
initialize variables objects required by the computation itself. Helpful
when a DEF FN function is required or to initialize constants variables or
arrays, particularly when b7 is itself set (meaning  that the computation
should be handled with a completely separate data segment).
. b0 for specifying a list of variables that should reside on top of SVM
(simple variables memory segment, thus speeding references to those
variables from the program flow). This is an imported mechanism from
Peersoft.
. b7 (introduced in JAH2.0.2) for dealing with a private data segment
enforced for every USR subsequent call handling (size is preset to 512 bytes
but can be tailored to one's own requiredment by just reassmbling the source
file). 

This is the JAH final release as a standalone UPO (unidentified programmmed
object ;-).

Peeersoft next update (due to be released before August this year) will
include the PF (Procedural functions) feature.

Benoît


-- 
Growing old is mandatory..
growing up is optional..
But the other way round is as true.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.apple2.programmer


csiph-web