Sunday 29 March 2015

1. Display string "Aloha" and wait for user input and quit the program.

C:\Users\WIN7>debug
-a 100
1393:0100 db 'Aloha$'
1393:0106 mov ah, 09
1393:0108 mov dx, 100
1393:010B int 21
1393:010D mov ah, 01
1393:010F int 21
1393:0111 int 20
1393:0113
-rcx
CX 0000
:13
-n nanonano.com
-w
Writing 00013 bytes
-q

C:\Users\WIN7>nanonano.com
Aloha



01 --> Cares the key that pressed

08 --> Do not care about the key that pressed before quit.


2. Display two string "Aloha" and "Its good" without creating newline





3. Wait for user input ('Key' not 'String') dan melakukan condition jump
debug
-a 
138A:0100 jmp 135
db 'Are you cool ? [y/n] : $'
-a 135
jmp 150
138B:0137 db 'Lol u are a loosa!$'
138B:014A
-a 150
138B:0150 jmp 170
138B:0152 db 'yay, me too!$'
138B:015F
-a 170
138B:0170 jmp 210
138B:0173 db 0d, 0a, 'Press any key to continue. . . $'
138B:0195
-a 210
138B:0210 mov ah, 09
138B:0212 mov dx, 102
138B:0215 int 21
138B:0217 mov ah, 01
138B:0219 int 21
138B:021B cmp al, 79
138B:021D je 230
138B:021F jne 260
138B:0221
-a 230
138B:0230 mov ah, 09
138B:0232 mov dx, 152
138B:0235 int 21
138B:0237 mov ah, 09
138B:0239 mov dx, 173
138B:023C int 21
138B:023E int 20
138B:0240
-a 260
138B:0260 mov ah, 09
138B:0262 mov dx, 137
138B:0265 int 21
138B:0267 mov ah, 09
138B:0269 mov dx, 173
138B:026C int 21
138B:026E mov ah, 08
138B:0270 int 21
138B:0272 int 20
138B:0274
-rcx
CX 0000
:174
-n j3.com
-w
Writing 00174 bytes
-q
Memahami science dari sudut memahami perilakunya. Baru kalau ada meteran dan waktu, diukur berapa lama reaksi ini terjadi lengkap (complete) jika diberi aksi sesuatu.

Misalnya kalau diberi ini jadi begini. Filosofi ini juga terdaftar di hukum newton ketiga: "Ada aksi ada reaksi".


Thursday 26 March 2015

Small Basic: Program that interupt

This the example of sub that interrupt the main loop i.e. main program:
'maincode
GraphicsWindow.MouseDown = mousclick 

For i = 0 to 10000000000
  TextWindow.WriteLine("Hello")
  Program.delay(1000)
endfor

sub mousclick
if Mouse.IsLeftButtonDown = "true" then
Program.End()
endif
endsub
1. Rangka
Seperti halnya rangka html:
<html>
<head>
</head>
<body>
 Tulisan-tulisan halaman web / content ditambahkan disini.
</body>
</html>

assembly juga punya rangka:
.code

.segment

.data

 2. Untuk mengkompile file assembly (.asm) membutuhkan
Alurkerjanya: .asm > .obj > .com atau .exe

Tugas register SI DI memegang peranan penting dalam operasi pada string.
Register CX untuk counter pada looping

Tampilan debug


Tampilan memori komputer (menggunakan debug command di shell windows "debug filekamu.com dan -d"):


Properti file program .asm kamu:
1. Jumlah segmen
2.

Alamat-alamat memory
B800h:0000

Wednesday 25 March 2015

communicative
A +B

associative
as long its add


excercise 1:
A + AB = A

ex 2:
(AB)(BC)

Industry
1. Communication/Information technology
2. Electronics
3. Machinery/Car/Chemical
4. Medical
5. Construction/Real Estate
6. Food
7. Consumer goods/Apparel
8. Speciality trading
9. General trading company
10. Retail/logistics
11. Banking
12. Insurance
13. Securities
14. Other financial
15. Publishing/Media
16. Hospitality/




In each industry there are below position:
1.
2.
3.
4.
5.