nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 28 Mar 2024 01:54



Reply to topic  [ 3 posts ] 
Hello, World! 
Author Message
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22409
Location: Silicon Valley
Reply with quote
Как оказалось народу нужен хелло-ворлд ;)

Code:
        ORG   8100h-512

; EXE-file header:

        dw 5845h     ; EXE Signature
        db 45h       ; Reserved (EXE type)
        db 00h       ; Version of EXE file
        dw 0200h     ; Code offset
        dw 0000h
        dw 0000h     ; Primary loader size or 0 (no primary loader)
        dw 0000h     ; Reserved
        dw 0000h     ; Reserved
        dw 0000h     ; Reserved
        dw START     ; Loading address
        dw START     ; Starting address (register PC)
        dw 0C000h    ; Stack address (register SP)
        ds 490       ; Reserved

; Сode of program (8100h)

START:

; Write welcome message

        ld   hl,msg
        ld   c,5ch
        rst   10h

; Wait keypress

        ld   c,30h
        rst   10h

; Exit program

        ld   bc,0041h
        rst   10h     

msg   db   "Hello, World!",13,10,0



На PC компильнуть можно вот этим http://shaos.ru/pub/zmac132.zip

Если на самом Спринтере - OrgASM

Почитать про программирование Спринтера можно на форуме создателей, оживить который косвенно помог добрый Shaos ;)
http://www.eng.petersplus.ru/forum/wwwthreads.php

_________________
:dj: https://mastodon.social/@Shaos


Last edited by Shaos on 09 Mar 2005 08:54, edited 2 times in total.



04 Mar 2005 03:56
Profile WWW
Doomed
User avatar

Joined: 11 Dec 2003 14:34
Posts: 413
Reply with quote
Shaos wrote:
Как оказалось народу нужен хелло-ворлд ;)

На PC компильнуть можно вот этим http://shaos.ru/pub/zmac132.zip

Если на самом Спринтере - OrgASM

Почитать про программирование Спринтера можно на форуме создателей, оживить который косвенно помог добрый Shaos ;)
http://www.eng.petersplus.ru/forum/wwwthreads.php


Правда что-ли ? ;). Тогда бы мог написать еще и на Си, который солид ;)

_________________
Vasil Ivanov
vasil-i@yandex.ru


06 Mar 2005 09:35
Profile
Doomed

Joined: 16 Mar 2002 17:00
Posts: 490
Reply with quote
Post 
Да, правда. Это мне был нужен hello world. Т.к. это очень неплохой способ сразу разобраться, как сделать исполняемую программу, умеющую делать вывод информации:) Мне неплохо помогло - сэкономило пару дней на разборки.


06 Mar 2005 10:00
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.