0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

アセンブラAdvent Calendar 2019

Day 4

plunkerでassembler-simulator その4

Last updated at Posted at 2019-10-14

#概要

plunkerでassembler-simulatorやってみた。
出力のメモリマップドを変更してみた。

#詳細

メモリの232番地から255番地が表示される。
24桁しかない。
254番地に、キーコード、255番地に49を出力すると
textareaに、表示されるようにした。

#サンプルコード

Hello World!を、出力。

start:
	MOV 	C, hello
	MOV 	D, 49
	MOV 	B, 0
loop:
	MOV 	A, [C]
	MOV 	[254], A
	MOV 	[255], D
	INC 	C
	CMP 	B, [C]
	JNZ 	loop
	HLT

hello:
	DB 		"Hello World!"
	DB 		0

#成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?