Quantcast

Jump to content

» «
Photo

Anyone here familiar with IBM mainframe programming?

4 replies to this topic
DeafMetal
  • DeafMetal

    Big Homie

  • Members
  • Joined: 20 Mar 2012

#1

Posted 10 April 2014 - 05:59 AM

In particular, z/Architecture.

 

Basically, I have to take a course on Assembly soon, and the school will not let me take it with too many other classes because it's supposed to be hard, which means that they want to extend my graduation period again. So, I'm working on doing the first half of the coursework for the class on my own and basically telling them to go f*ck themselves and let me graduate when I want to.

 

So far, so good, I got two out of eight assignments done. HOWEVER, it's much harder than it needs to be since the internet is almost no help and the notes available to me are vague. I do have a friend who is helping me by giving brief tutoring sessions, but unfortunately, there are circumstances that make it difficult for me to achieve my goal within the time frame I desire.

 

Soooo, basically anyone here familiar with the topic who can possibly serve as a reference for me when I get stuck somewhere?

 

/lifestory


K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#2

Posted 10 April 2014 - 07:52 PM

Are your problems with actual z-specific stuff, or general Assembly? Because it's going to be way easier to find good resources on x86 and x86-64 Assembly. And most of the concepts are going to be identical across architectures. You can also build and test the x86 code on your own machine and get better help with debugging it.

 

Of course, you'll need to know nuances of z/Architecture as well, and there are quite a few, but if you understand how machines are programmed in general, you should have no trouble learning the specifics.

 

And what are you using to compile and run the z/Architecture code?


DeafMetal
  • DeafMetal

    Big Homie

  • Members
  • Joined: 20 Mar 2012

#3

Posted 11 April 2014 - 01:38 AM Edited by DeafMetal, 11 April 2014 - 02:58 PM.

Thank you for responding.

 

Unfortunately, they run a VERY bad Computer Science program in my school, and one of the symptoms of this is that they're very vague and unspecific about the details of what we're working with. They do not explicitly tell the students what they will be doing from what I have gathered by speaking with my friend who is currently taking the course. And, since I am brand new to mainframe programming and not actually taking the class, I wouldn't be able to deduct it, apart from the z/Architecture in one of the recommended readings.

 

If you're interested in possibly lending a hand, let me know by responding again, and I'll PM you the course website.

 

Here's the implicit version of the first program in the course, not sure if that can be of any help in regards to your questions:

* TEST IMPLICIT ASSIGNMENT 1
* ADD GOALS + ASSISTS INTO POINTS, XDUMP REGISTERS, STORAGE
USING MAIN, R15
*********************************************************************
L      R1,GOALS        LOAD REGISTER 1 WITH GOALS
L      R2,ASSISTS      LOAD REGISTER 2 WITH ASSISTS 
AR     R1,R2           STORE THE ADDITION OF R1 AND R2 INTO R1
ST     R1,POINTS       STORE POINTS INTO REGISTER 1
XDUMP                  XDUMP REGISTERS
XDUMP  GOALS, 12       XDUMP GOALS, ASSISTS, POINTS
BR R14
*********************************************************************
GOALS   DC f'172'      SET GOALS TO 172
ASSISTS DC f'308'      SET ASSISTS TO 308
POINTS  DC f'0'        INITIALIZE POINTS TO NULL

Edit: Just saw your last question... I'm on zombie mode 24/7, sorry. I haven't found a compiler yet due to how vague everything is, but my friend is asking around for possible third-party compilers since the one the school provides requires the student to take the course.


K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#4

Posted 14 April 2014 - 12:06 AM

Whoever came up with that particular brand of Assembly should be dragged behind some wild raptors. Standard mnemonics exist for a reason. But otherwise, it's fairly straight forward.

 

I don't know how much help I can actually be, mainly due to time restrictions, but if you get stuck on anything, feel free to PM me. I can't guarantee that I'll be able to reply to everything, but if I'll have time, I'll help out with what I can. If the course web-site has more sample code, feel free to link me, I'll take a look at it.

  • DeafMetal likes this

DeafMetal
  • DeafMetal

    Big Homie

  • Members
  • Joined: 20 Mar 2012

#5

Posted 14 April 2014 - 01:25 AM

Appreciate it. I'll PM you the website in a few minutes.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users