|
Hello World ! (pg. 3)
|
View this Thread in Original format
| Durafei |
| Anyone dare to code this in assembly for Pentium ? |
|
|
| cereal3825 |
| quote: | Originally posted by Durafei
Anyone dare to code this in assembly for Pentium ? |
section .text
global _start
msg db 'Hello, world!',0xa
len equ $ - msg
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80 |
|
|
| cereal3825 |
10 PRINT "HELLO, WORLD"
11 GOTO 10
Lets not forget Basic (real basic none of this VB crap)
Steve |
|
|
| goodnet |
lol steve
...
"Jawa!"
EDIT: I remember trying BASIC in my oldskool Apple II days. good ol days |
|
|
| victor |
File a.m ::
p1 = "Hello World"
eof
>mira a.m
T h e M i r a n d a S y s t e m
version 2.028 last revised 14 April 2003
Copyright Research Software Ltd, 1990
compiling b.m
p1 = "Hello World"
checking types in b.m
for help type /help
Miranda p1
Hello World
Miranda
:D |
|
|
| kewlness |
| anyone wanna compile a scrabble game in C for me?? ;) |
|
|
| DigiNut |
| quote: | Originally posted by Durafei
Anyone dare to code this in assembly for Pentium ? |
How about embedded systems code with an LCD?
code:
lcd_data equ $0000
lcd_data_ddr equ $0001
lcd_ctrl equ $0002
lcd_ctrl_ddr equ $0003
rs equ 1
rw equ 2
clk equ 4
org $FFFE
fdb $C000
org $C000
clr lcd_data
movb #$03,lcd_ctrl
movb #$FF,lcd_data_ddr
movb #$FF,lcd_ctrl_ddr
bclr lcd_ctrl,rs
lda #$38
jsr lcd_write
lda #$0C
jsr lcd_write
lda #$01
jsr lcd_write
lda #$06
jsr lcd_write
bset lcd_ctrl,rs
ldx #msg
loopL1:
lda 0,X
beq endL1
jsr lcd_write
inx
bra loopL1
endL1:
swi
lcd_write:
sta lcd_data
bclr lcd_ctrl,rw
bset lcd_ctrl,clk
bclr lcd_ctrl,clk
rts
msg:
fcc 'Hello World!'
fcb 0
The sad part is I've actually been doing this type of thing for the past 6 hours. :(
How about a MIPS version? Those work on the original NES I think. :p |
|
|
| rabbitjoker |
| quote: | Originally posted by DigiNut
The sad part is I've actually been doing this type of thing for the past 6 hours. |
Hmmm... Next time we're out let me buy you a cocktail...
Oh wait... I can't... You're not an alcoholic because you don't drink and drive.
By the way - your avatar made me BM in my pants it is so funny! ;) |
|
|
| SgtFoo |
Lets all take a trip back in time.....
#begin program
var int: cnt:=0
loop
put "we may be geeks "..
put "but trance rules us all."
put "and some alcohol too."
exit when cnt=999
end loop
#end program
...what language or script was that?!!;) |
|
|
| DigiNut |
| quote: | Originally posted by rabbitjoker
Hmmm... Next time we're out let me buy you a cocktail...
Oh wait... I can't... You're not an alcoholic because you don't drink and drive. |
code:
< script language=JavaScript >
document.write(" you");
< /script >
:p
|
|
|
| DigiNut |
| quote: | Originally posted by SgtFoo
Lets all take a trip back in time.....
#begin program
var int: cnt:=0
loop
put "we may be geeks "..
put "but trance rules us all."
put "and some alcohol too."
exit when cnt=999
end loop
#end program
...what language or script was that?!!;) |
Ugh turing
If you want to be old sk00l then try FORTRAN:
code: c
c Hello, world.
c
Program Hello
implicit none
logical DONE
DO while (.NOT. DONE)
write(*,10)
END DO
10 format('Hello, world.')
END
|
|
|
| rabbitjoker |
| quote: | Originally posted by DigiNut
code:
< script language=JavaScript >
document.write(" you");
< /script >
:p
|
YES YES! BWHAHAHAHAH!! :) :) :)
Dood - that just forced another BM! ;) See you soon mate! |
|
|
|
|