程序代写代做代考 Introduction*to*Computer*Systems*::*Virtual*Machine*Language*

Introduction*to*Computer*Systems*::*Virtual*Machine*Language*
Worksheet)1:)) Write)the)Hack)instructions)that)implement)each)of)the)following)VM)commands:) *
1. sub*
* * * * * * * * * * * * * *
2. neg* *
* * * * * * * * *
ýBillingsley*2017*

Introduction*to*Computer*Systems*::*Virtual*Machine*Language*
3. gt* *
* * * * * * * * * * * * * * *
4. not* *
* * * *
ýBillingsley*2017*

Introduction*to*Computer*Systems*::*Virtual*Machine*Language*
Worksheet)2:)) Write)the)Hack)instructions)that)implement)each)of)the)following)VM)commands:) *
1. push*constant*20*
* * * * * *
2. push*local*3* *
* * * * * * * * *
3. pop*argument*2*
ýBillingsley*2017*

Introduction*to*Computer*Systems*::*Virtual*Machine*Language*
4. push*static*5******(assume*you*are*translating*a*file*called*paddle)* *
*
*
*
*
*
*
*
*
*
5. pop*temp*3* *
*
*
*
*
*
*
6. pop*pointer*1* *
ýBillingsley*2017*