0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WindowsやMacでIBM アセンブラを試す

Posted at

z390というエミュレータを使って、お手持ちのPC(Windows,Linux,Mac)でIBMのHLASM(High Level Assembler)を試すことができます。

インストール

Hello World

以下のファイルをHELLO.MLCとして作成します。

HELLO.MLC
HELLO    CSECT
         BASR  15,0
         USING *,15
         WTO   'Hello z390!'
         BR    14
         END

以下でコンパイル、リンク、実行を行います。PATHを通していなければasmlgを絶対PATHで指定します。

$ asmlg HELLO.MLC "SYSMAC(/usr/local/z390/mac+)"
19:53:32 HELLO     MZ390 START USING z390 v1.8.1 ON J2SE 17.0.14 06/28/25
19:53:32 HELLO     MZ390 ENDED   RC= 0 SEC= 0 MEM(MB)= 71 IO=226
19:53:32 HELLO     LZ390 START USING z390 v1.8.1 ON J2SE 17.0.14 06/28/25
19:53:32 HELLO     LZ390 ENDED   RC= 0 SEC= 0 MEM(MB)= 10 IO=32
19:53:33 HELLO     EZ390 START USING z390 v1.8.1 ON J2SE 17.0.14 06/28/25
Hello z390!
19:53:33 HELLO     EZ390 ENDED   RC= 0 SEC= 0 MEM(MB)= 17 IO=23 INS=5
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?