New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

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

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Sustainable Development

by: Arden Hoppe

Sustainable Development LDA 003

Arden Hoppe
GPA 4.0


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in Landscape Architecture

This 5 page Class Notes was uploaded by Arden Hoppe on Tuesday September 8, 2015. The Class Notes belongs to LDA 003 at University of California - Davis taught by Staff in Fall. Since its upload, it has received 57 views. For similar materials see /class/191810/lda-003-university-of-california-davis in Landscape Architecture at University of California - Davis.


Reviews for Sustainable Development


Report this Material


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: 09/08/15
ECS 50 Discussion Notes Friday May 2 2008 Programming in CUSP Five step process for writing a program 1 Write the program in Pascal or C with an eye towards assembly language 0 This step should be easy 2 Symbolic Form Build program using symbolic placeholders for addresses 0 Use labels that precede the mnemonics to de ne positions of addresses in the program 0 One label for each unique symbolic placeholder 3 Address Form Assign an address to each instruction Create symbol table 4 Substitution Substitute addresses in place of symbolic placeholders 5 Machine Form Convert mnemonics and addresses to machine code Example 1 Write a program to get the sum of two variables 1 Write the program in C 2 Symbolic Form Mnemonic X variable Y variable Z variable Table 1 Symbolic Form Program 3 Address Form 4 Substitution Addr Label Mnemonic Comment 000 LDA Y ACC Y 001 ADAZ ACC YZ 002 STAX XYZ 003 HLT stop 004 X X variable 005 Y Y variable 006 Z Z variable Table 2 Address Form Program Symbol Address X 004 Y 005 Z 006 Table 3 Symbol Table Addr Label nemonic Comment 000 LDA 005 ACC Y 001 ADA 006 ACC Y Z 002 STA 004 X Y Z 003 HLT stop 004 X X variable 005 Y Y variable 006 Z Z variable Table 4 Mnemonic Form Program 5 Machine Form Mnemonic Contents 002005 Comment ACC Y 001 102006 ACC Y Z 002 042004 X Y Z 003 FFFFFF stop 004 X variable 005 Y variable 006 Z variable Table 5 Machine Form Program Actually the assembler CHASM can do the last three steps for us So we only need to provide the mnemonics using symbolic addresses Example 2 Convert the following C code into CUSP C Version X l else X 3 1 5 CUSP Version EQU LDA CMA JGT LDA STA JMP LDA STA LDA STA HLT BLKW X BLKW Y BLKW END ELSE DONE N 100 N 10 ELSE 1 X DONE gmxw de ne starting address ACC will hold N N 10 jump if N gt 10 X 1 bypass the else part Y5 stop reserved for N reserved for X reserved for Y end of input Example 3 Construct a program that will compute the sum of the rst N numbers C Version CUSP Version EQU 100 EQU ConsLN 10 LDA 1 STA I LDA 0 STA SUM LDA I LOOP CMA N JGT DONE ADA SUM STA SUM INC I LDA I IMP LOOP DONE HLT SUM BLKW 1 I BLKW 1 N WORD ConstN END de ne starting address assign name to constant SUM0 ACC willhodI IN gjumpifIgtN SUMSUMI I I 1 reload ACC with I repeat loop stop reserved for SUM reserved for I reserved for N end of input Example 4 Explain the effects of the following instruction sequences on the registers ags and memory locations that are indicated Assume that all programs start at memory location 000 LDA 003 7FFFFF After execution we want to know the following ACC Memory004 OV Q Q Q Q Q EQ LT


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

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

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Amaris Trozzo George Washington University

"I made $350 in just two days after posting my first study guide."

Jim McGreen Ohio University

"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."

Become an Elite Notetaker and start selling your notes online!

Refund 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


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:

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

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.