1
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?

GitHub ActionsでZ80アセンブル

Last updated at Posted at 2025-06-02

なんとなく思いつきでGeminiさんに作ってもらいました作ってみました。
アセンブラは AILZ80ASM を使っています。ありがとうございます!

リポジトリ

ワークフロー

プルリクすると走ります

z80.yaml
name: Z80 Assembly CI

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repository
      uses: actions/checkout@v4

    - name: Install assembler
      run: |
        wget https://github.com/AILight/AILZ80ASM/releases/download/v1.0.29/AILZ80ASM.linux-x64.v1.0.29.zip
        unzip AILZ80ASM.linux-x64.v1.0.29.zip
        chmod +x AILZ80ASM
        sudo mv AILZ80ASM /usr/local/bin/

    - name: Assemble
      run: |
        AILZ80ASM test.asm -o out.bin

    - name: Upload artifacts
      uses: actions/upload-artifact@v4
      with:
        name: z80-binary
        path: out.bin

テスト結果

入力

[PC-6001] カートリッジから起動する より

test.asm
        org     $4000
        db      'AB'
        dw      entry

entry:
        ld    a,'@'
        ld    ($821F),a
        ret

出力

out.bin
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  41 42 04 40 3E 40 32 1F 82 C9                  
1
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
1
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?