Macam-macam Bahasa Pemrograman Yang digunakan pada Robotika

1. C dan C++
#include
#include
#include
Void main (void){
//tulis programm anda
}
2. BASIC
$regfile = “m16def.dat”
Dim Ei-bot as integer
Dim Replay as byte Dim Maju as word
...........
3. PASCAL
uses Crt;
var
x,y,z : longint;
lagi : char;
namak : string[20];
begin
lagi := 'y';
while (lagi = 'y') or (lagi = 'Y') do
begin
clrscr;
.....................................................
end;
end.
4. ASSEMBLER
_Move_Delay:
;lcd design.mbas,44 ::
sub procedure Move_Delay() ' Function used for text moving
;lcd design.mbas,45 ::
Delay_ms(500) ' You can change the moving speed here
MOV R5, 4
MOV R6, 205
MOV R7, 189
DJNZ R7,
DJNZ R6,
DJNZ R5,
NOP
RET
; end of _Move_Delay

Dan Mungkin Masih ada Lagi 

0 komentar