### Create a StudySoup account

#### Be part of our community, it's free to join!

Already have a StudySoup account? Login here

# Assembly Lang Programming 1 CPSC 3121

GPA 3.91

### View Full Document

## 49

## 0

## Popular in Course

## Popular in ComputerScienence

This 6 page Class Notes was uploaded by Earlene Cremin III on Sunday October 11, 2015. The Class Notes belongs to CPSC 3121 at Columbus State University taught by Edward Bosworth in Fall. Since its upload, it has received 49 views. For similar materials see /class/221199/cpsc-3121-columbus-state-university in ComputerScienence at Columbus State University.

## Similar to CPSC 3121 at

## Popular in ComputerScienence

## Reviews for Assembly Lang Programming 1

### What is Karma?

#### Karma is the currency of StudySoup.

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/11/15

Storing Data Binary Problem 1 Given the decimal number 29 what is it hexadecimal equivalent Answer In decimal 29 16 13 Decimal 13 0xD Then we have Answer ID Problem 2 This value is stored in a location declared as H1 DC H 0 The value here is initialized to 0 but can be overwritten What is the value stored in hexadecimal Answer How many bytes are assigned to H1 Two What are the hexadecimal values stored X 001D NOTE One hexadecimal digit represents 4 bits 0x0 is 0000 and 0xF 1111 One byte represents eight bits It can be represented as 2 hexadecimal digits A halfword is 16 bits It can be represented by four hexadecimal digits A fullword is 32 bits It can be represented by eight hexadecimal digits gt This is IBM mainframe terminology Packed Decimal Look at the declaration P1 DC PL4 123456 What is the value stored in hexadecimal digits X 0123456C P2 DC PL3 12 How many bytes of data here 3 bytes What is the value stored in hex X 00012C P3 DC PL4 14 Decimal value 14 How many bytes of data 4 What is the value in hex X 0000014C How does this look in binary 0000 0000 0000 0000 0000 0001 0100 1100 Open Question We execute the instruction LH 3P3 What value in decimal is stored in register 3 Reason The halfword beginning at address P3 is 0000 0000 0000 0000 P3 DC PL4 14 Decimal value 14 How many bytes of data 4 What is the value in hex X 0000014C We execute the instruction L 3P3 What value in decimal is stored in register 3 In hexadecimal the value is 0x014C In decimal it is 332 P4 DC 13125 Two bytes x1250 or 0001 0010 0101 1100 There are only 10 types of people in the world Those who understand binary and those who do not What is the hexadecimal number corresponding to decimal value 7 What data types are stored in memory 1 Characters EBCDIC Packed decimal Floating point Several varieties we ignore them all 759 Integers half words and full words Half word is a 16 bit integer Full word is a 32 bit integer Everything in the memory is stored as binary just a bunch of 1 s and 0 s How we use the contents determines the meaning The System370 is a byte addressable machine The contents of any byte half word full word or packed decimal entry can be represented in binary decimal or hexadecimal Conversion Examples Bina to Decimal 11011010 This is an eight bit number Remember positional notation Standard representation 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 0 127 126 025 124 123 022 121 020 128641682218 IBM Notation as used in this course Hexadecimal to Decimal Positional notation use powers of 16 X 1234 10163 2162 3161 4160 4660 One can also convert rst to binary Decimal to Hexadecimal gt Convert rst hexadecimal to binary 7Con dmthebkmkofde ma onsbdow H1 DC H 16384 Hexadecimal 4000 H2 DC H 12288 Hexadecimal 3000 2 bytes or 16 bits H3 DC H 8192 Hexadecimal 2000 2 bytes or 16 bits What is stored in the register as a result of each of the following instructions i LH 3 H2 L 5H2 i Loads Register 3 with X 3000 iiLoads Register 5 with X 30002000 Storing hexadecimal X3 DC X 9090 1001 0000 1001 0000

### BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.

### You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

#### "I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

#### "Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.