Skip to content

Commit

Permalink
uploaded from the terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimfe committed Apr 23, 2023
0 parents commit 5013e2d
Show file tree
Hide file tree
Showing 19 changed files with 403 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.configureOnOpen": true
}
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# small-project

Hey there! Welcome to my small project repository. This is where I'll be showcasing some of the cool stuff I've been working on.

## Getting Started

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites

You'll need the following software installed on your machine:

- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/)

### Installing

1. Clone the repository
git clone https://github.com/ibrahimfe/small-project.git

2. Install the dependencies
npm install

## Running the tests
npm test

## Deployment

This project is ready to be deployed.

## Built With

- [Python](https://python.org)

## Contributing

If you want to contribute to this project, just let me know! I'd love to have you on board.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ibrahimfe/small-project/tags).

## Authors

- **Ibrahim** - *Small Project* - [ibrahimfe](https://github.com/ibrahimfe)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

- Thanks to anyone whose code was used
- Inspiration
- etc
16 changes: 16 additions & 0 deletions latihan2.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Latihan 2
; Fungsi : Mencetak Karakter A Beserta Atributnya

.MODEL SMALL
.CODE
ORG 100h
Proses:
MOV AH, 09h ; Nilai Servis untuk mencetak karakter
MOV AL, 'A' ; AL = karakter ASCII yang akan dicetak
MOV BH, 00h ; Nomor halaman layar
MOV BL, 93h ; Atribut dari karakter berupa warna
MOV CX, 03h ; Banyaknya karakter yang ingin dicetak

INT 10h ; Laksanakan
INT 20h ; Selesai kembali ke DOS
END Proses
16 changes: 16 additions & 0 deletions latihan3.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Program : Latihan3.asm
; Fungsi : Mencetak Karakter 'A - z'
; beserta atributnya
.MODEL SMALL
.CODE
ORG 100h
PROSES :
MOV AH, 02h
MOV DL, 'A'
MOV CX, 26
ULANG :
INT 21h
ADD DL,1
LOOP ULANG
INT 20h
END PROSES
24 changes: 24 additions & 0 deletions latihan4.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
; Program : latihan4.asm
; Fungsi : Mencetak Karakter 'A-z'
; Beserta Atributnya loop Diberi Warna

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV AH, 9h
MOV BL, 96h
MOV CX, 26
Ulang :
INT 10h
ADD BL, 1
LOOP Ulang
MOV AH, 2h
MOV DL, 'A'
MOV CX, 26
Dua :
INT 21h
ADD DL, 1
LOOP Dua
INT 20h
END Proses
17 changes: 17 additions & 0 deletions latihan5.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
; Program : latihan5.asm
; Fungsi : Mencetak 16 Buah Karakter Dengan INT 21h Servis 02

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV AH, 02h ; Nilai Servis Untuk Mencetak Karakter
MOV DL, 'A' ; DL = Karaker 'A' atau DL = 41h
MOV CX, 10h ; Banyaknya pengulangan yang akan dilakukan
Ulang :
INT 21h ; Cetak Karakter
INC DL ; Tambah DL dengan 1
LOOP Ulang ; Lompat ke Ulang

INt 20h
END Proses
30 changes: 30 additions & 0 deletions latihan6.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
; Program : latihan6.asm
; Fungsi : Mencetak Karakter Diberi Warna Per Huruf

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV AH, 09h ; Kode Untuk Mencetak Warna
MOV BL, 93h ; Kode Warna Yang akan dicetak
MOV CX, 6h ; Jumlah karakter yang akan dicetak
Ulang :
INT 10h ; Cetak Warna
ADD BL, 1 ; Menambah Kode Warna Sebanyak 1, Sehingga Warnanya akan berbeda beda
LOOP Ulang ; Ulangi perintah Ulang

MOV AH, 02h
MOV DL, 41h ; push 'A'
INT 21h
MOV DL, 49h ; push 'I'
INT 21h
MOV DL, 53h ; push 'S'
INT 21h
MOV DL, 60h ; push 'Z'
INT 21h
MOV DL, 41h ; push 'A'
INT 21h
MOV DL, 48h ; push 'H'
INT 21h
INT 20h ; Stop
END Proses
15 changes: 15 additions & 0 deletions latihan7.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; Program : latihan7.asm
; Fungsi ; Mencetak Kata Hello World

.model tiny
.code
org 100h
main proc
mov ah, 9
mov dx, offset hello_message
int 21h
retn

hello_message db 'Hello, World!'
main endp
end main'
21 changes: 21 additions & 0 deletions latihan8.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
; Program : latihan8.asm
; Fungsi : Mencetak Kalimat My name is Ibr

.MODEL SMALL
.CODE
ORG 100H
proses :
jmp ulang
vkal db 'My Name Is Ibrahim'
ulang :
MOV DL, VKAL[BX]
MOV AH, 02H
INT 21h
INC BX
MOV AX, BX
CMP AX, 14
JE EXIT
JMP ulang

EXIT : INT 20H
END proses
21 changes: 21 additions & 0 deletions latihan9.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
; PROGRAM : latihan9.asm
; FUNGSI : Mencetak Kalimat My Name Is Ibrahim

.MODEL SMALL
.CODE
ORG 100H
proses :
jmp ulang
vkal db 'My Name Is Ibrahim'
ulang :
MOV DL, VKAL[BX]
MOV AH, 02H
INT 21H
INC BX
MOV AX, BX
CMP AX, 30
JE EXIT
JMP ulang

EXIT : INT 20H
END proses
13 changes: 13 additions & 0 deletions math.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
; PROGRAM : math.asm
; FUNGSI : ARITMATIKA PERKALIAN DENGAN MUL

.MODEL SMALL
.CODE
ORG 100h
proses :
MOV AH, 15h ; AH : = 15h
MOV AL, 4 ; AL : = 4
ADD AH, AL ; AH:= AH + AL, JADI AH = 19h

INT 20H
END proses
23 changes: 23 additions & 0 deletions math1.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
; Program : math1.asm
; Fungsi : Operator Matematika ADD

.Model Small
.Code
ORG 100h
Tdata :
JMP Proses
ALo Equ 0EFFH
AHi Equ 122h
BLo Equ 0FFFFH
BHi Equ 0EFFH
HslLo dw ?
HslHi dw ?
Proses :
MOV AX, ALo
SUB AX, BLo
MOV HslLo, AX
MOV AX, AHi
SBB AX, BHi
MOV HslHi, AX
INT 20h
End Tdata
14 changes: 14 additions & 0 deletions math2.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; Progam : math2.asm
; FUNGSI : Melakukan Penjumlahan dengan DEBUG

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV AL, 30h ; AX: = FF30
MOV BL, 20h ; BX: = 0020
ADD AL, BL ;AX = 30 + 20 = FF50

INT 21H
INT 20H
END Proses
16 changes: 16 additions & 0 deletions math3.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Program : math3.asm
; Fungsi : Operator Matematika ADD, ADC, & DEBUG

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV AX, 1234h ; AX = 1234h CF = 0
MOV BX, 9ABCh ; BX = 9ABCh CF = 0
MOV CX, 5678h ; CH = 5678h CF = 0
MOV DX, DEF0h ; DX = DEF0h CF = 0
ADD CX, DX ; CX = 3568h CF = 1
ADC AX, BX ; AX = AX + BX + CF = ACF1

INT 20h
END Proses
12 changes: 12 additions & 0 deletions math4.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; Program : math4.asm
; Fungsi : Operator Matematika Dengan INC

.MODEL SMALL
.CODE
ORG 100h
Proses :
MOV DL, 18h ;
INC DL

INT 20h
END Proses
22 changes: 22 additions & 0 deletions math5.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
; Program : math5.asm
; Fungsi : Melihat Penambahan Yang dilakukan oleh berbagai perintah

.MODEL SMALL
.CODE
ORG 100h
proses :
MOV AH, 15h ; AH: = 15h
MOV AL, 4 ; AL: = 4
ADD AH, AL ; AH: = AH + AL, Jadi AH = 19h
MOV AX, 1234h ; Nilai AX: = 1234h dan carry = 0
MOV BX, 0F221h ; Nilai BX: = F221h dan carry = 0
ADD AX, BX ; AX = AX + BX, jadi nilai AX = 0455h
MOV AX, 1234h ; AX = 1234h, CF = 0
MOV BX, 9ABCh ; BX = 4567h, CF = 0
MOV CX, 5678h ; CX = 5678h, CF = 0
MOV DX, 0DEF0h ; DX = DEF0h, CF = 0
ADD CX, DX ; CX = 3568h CF = 1
ADC AX, BX ; AX: = AL + BX + CF = ACF1
INC AL ; AL: = AL + 1, Nilai Pada AL ditambah 1
INT 20h
END proses
Loading

0 comments on commit 5013e2d

Please sign in to comment.