Sha256: 11553a368c84339bd36e4c414c696f6869a01c2f2d467c8208fedbac8bc01e5f

Contents?: true

Size: 706 Bytes

Versions: 7

Compression:

Stored size: 706 Bytes

Contents

;;;;;;;;;;;;;;;;;;;
jsr init_devices
jsr Hello_World
set PC,end
;;;;;;;;;;;;;;;;;;;
:dev_screen   dat 0
:device_count dat 0
;;;;;;;;;;;;;;;;;;;
:find_devices
hwn [device_count]
set I,0
:find_devices_loop
hwq i
ife A,0xf615
    set [dev_screen],1
add I,1
ifn I,device_count
    set PC,find_devices_loop
set PC,pop
:init_devices
jsr find_devices
;set up display 
set A,0
set B,0x8000
hwi [dev_screen]
set PC,pop

:Hello_World
set [0x8000],0x1048
set [0x8001],0x1065
set [0x8002],0x106c
set [0x8003],0x106c
set [0x8004],0x106f
set [0x8005],0x102c
set [0x8006],0
set [0x8007],0x1077
set [0x8008],0x106f
set [0x8009],0x1072
set [0x800a],0x106c
set [0x800b],0x1064
set [0x800c],0x1021
set PC,pop

:end
set PC,end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
language_templates-0.1.5.2 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.5.1 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.5 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.4 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.3 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.2 bin/languages/a/assembler_DCPU16.asm
language_templates-0.1.1 bin/languages/a/assembler_DCPU16.asm