Re: Assembler Entry and Exit module

2010-08-24 Thread Tony Harminc
On 24 August 2010 08:40, McKown, John wrote: > There are not truly "stack based" as Shmuel was talking about. True "stack > based" machines don't have general purpose registers. Instructions, such as > ADD, take their operands from a stack and leave their results on the stack. Like Java... To

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In <245452399-1282658035-cardhu_decombobulator_blackberry.rim.net-16452400...@bda026.bisx.prod.on.blackberry>, on 08/24/2010 at 01:54 PM, Ted MacNEIL said: >Don't DEC machines have them also? Which DEC machines? -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In <008101cb4392$d0c24570$7246d0...@org>, on 08/24/2010 at 09:46 AM, Charles Mills said: >But I do recall that the 8086+ family has an SS >register that normally points to the end (lower memory extremity) of >the stack. The SP "grows" toward 0 has I recall and causes a program >exception when

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In , on 08/24/2010 at 07:40 AM, "McKown, John" said: >There are not truly "stack based" as Shmuel was talking about. True >"stack based" machines don't have general purpose registers. It's possible to have a stack based machine with general registers. That might come in handy for, e.g., shuff

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In <4c73b326.3030...@edelweb.fr>, on 08/24/2010 at 01:55 PM, Peter Sylvester said: >And there also you have entry/exit conventions. At least two, see >cdecl ou stdcall. Who does the push/pop, caller or subroutine. If you're lucky, the push and pop might be for the same amount. That doesn't a

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In <007001cb437e$bb883fc0$3298bf...@org>, on 08/24/2010 at 07:23 AM, Charles Mills said: >Um, don't the descendants of the 8086 -- you know, those pesky PCs -- >have a stack implemented in hardware? Well, they have something called SP, but the Devil is in the details. You're still looking at

Re: Assembler Entry and Exit module

2010-08-24 Thread Ted MacNEIL
>Um, don't the descendants of the 8086 -- you know, those pesky PCs -- have a >stack implemented in hardware? Don't DEC machines have them also? - I'm a SuperHero with neither powers, nor motivation! Kimota! -- For IBM-MAIN sub

Re: Assembler Entry and Exit module

2010-08-24 Thread Charles Mills
riginal Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of McKown, John Sent: Tuesday, August 24, 2010 8:40 AM To: IBM-MAIN@bama.ua.edu Subject: Re: Assembler Entry and Exit module > -Original Message- > From: IBM Mainframe Discussion List &

Re: Assembler Entry and Exit module

2010-08-24 Thread McKown, John
> -Original Message- > From: IBM Mainframe Discussion List > [mailto:ibm-m...@bama.ua.edu] On Behalf Of Charles Mills > Sent: Tuesday, August 24, 2010 6:23 AM > To: IBM-MAIN@bama.ua.edu > Subject: Re: Assembler Entry and Exit module > > Um, don't the descen

Re: Assembler Entry and Exit module

2010-08-24 Thread Peter Sylvester
On 08/24/2010 01:23 PM, Charles Mills wrote: Um, don't the descendants of the 8086 -- you know, those pesky PCs -- have a stack implemented in hardware? And there also you have entry/exit conventions. At least two, see cdecl ou stdcall. Who does the push/pop, caller or subroutine. Any prog

Re: Assembler Entry and Exit module

2010-08-24 Thread Charles Mills
: IBM-MAIN@bama.ua.edu Subject: Re: Assembler Entry and Exit module In <002d01cb42cf$384d88e0$a8e89a...@org>, on 08/23/2010 at 10:26 AM, Charles Mills said: >Not sure that I understand the question but perhaps the answer is >that unlike machines you may have used in the pa

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In , on 08/24/2010 at 07:47 PM, Ram Study said: >Can anyone explain me why we are using Entry and Exit conventions in >Mainframe assembler. Because the vendor documented them. Because it helps to promote interoperability. >Say for example below is the conventions I got from net and its >work

Re: Assembler Entry and Exit module

2010-08-24 Thread Shmuel Metz (Seymour J.)
In <002d01cb42cf$384d88e0$a8e89a...@org>, on 08/23/2010 at 10:26 AM, Charles Mills said: >Not sure that I understand the question but perhaps the answer is >that unlike machines you may have used in the past, "standard" OS >architecture and linkage does not use a stack, It's unlikely that he

Re: Assembler Entry and Exit module

2010-08-23 Thread Terry Sambrooks
Hi To supplement Charles Mills response to your question on why Entry and Exit conventions are used in Assembler I will add the following. Think single processor for a moment, as that was or starting point for System/360. The Operating System was designed to sustain multiple operations based on

Re: Assembler Entry and Exit module

2010-08-23 Thread Ted MacNEIL
>Can anyone explain me why we are using Entry and Exit conventions in Mainframe >assembler. The reason for standards such as this one is so everybody knows what to expect. We know that the called programme will save our status, restore it after we are done, return to the next instruction after

Re: Assembler Entry and Exit module

2010-08-23 Thread Charles Mills
sage- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Ram Study Sent: Tuesday, August 24, 2010 10:17 AM To: IBM-MAIN@bama.ua.edu Subject: Assembler Entry and Exit module Hi All, Can anyone explain me why we are using Entry and Exit conventions in Mainframe

Assembler Entry and Exit module

2010-08-23 Thread Ram Study
Hi All, Can anyone explain me why we are using Entry and Exit conventions in Mainframe assembler. Say for example below is the conventions I got from net and its working fine. Entry Convention STM R14,R12,12(R13) BALR R12,0 USIN