Download presentation
Presentation is loading. Please wait.
Published byRolf Mattsson Modified over 5 years ago
1
Computer Systems and Assembly Language Input and output operations
Eltayeb Abuelyaman CS Week # 15
2
Character Operations chari 0x000d,d chari 0x000e,d charo 0x000e,d
charo 0x000d,d stop .block 1 .end
3
Input and Output Operations
Determine the object code and predict the output of the following program DECO ‘m’,i CHARO ‘\n’,i DECO “mm”,i CHARO ‘\n’,I CHARO 0x0026,I STOP .END
4
Labels Determine the values of the symbols here and there and write the object code in hexadecimal BR there here: .word there: DECO here,d STOP .END
5
An HLL program to compute modulo 16 of input numbers
#include <isotream> Using namespace std; Int num; Int main() { cin >> num; remain = num %16; cout << “num = “” << endl; return 0; }
6
A program to compute Modulo a Number
br start num: block 1 result: ASCII " sum = \X00" start: deci num,d lda num,d anda x000f,i sta num,d stro result,d deco num,d charo '\n',i stop .end
7
Stack Relative Addressing
br reverse first: word 'S' second: word 'U' third: word 'B' reverse: lda first,d stbytea ,s lda second,d stbytea ,s lda third,d stbytea ,s subsp ,i charo ,s charo ,s charo ,s
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.