Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Z80をRustで動かすまで年が越せない

KOBA789
December 29, 2023

 Z80をRustで動かすまで年が越せない

2023/12/29から翌12/30にかけて配信された「【前半戦】Z80をRustで動かすまで年が越せない配信【年末特番】」で使ったスライドです。
https://youtube.com/live/9eTlxU6kQxg

KOBA789

December 29, 2023
Tweet

More Decks by KOBA789

Other Decks in Programming

Transcript

  1. ౰࣌ͷࣄ৘͸͋Γͭͭ΋؆ܿ w ిݯ͸୯Ұ7 w ৴߸͸ܭຊ w ΫϩοΫೖྗ w ΞυϨεઢຊ σʔλઢຊ

    w ϝϞϦ੍ޚ৴߸ຊ w $16੍ޚ৴߸ຊ w %."༻৴߸ຊ ΠϯλʔϑΣʔε https://www.zilog.com/docs/z80/um0080.pdf
  2. ;ͷڭՊॻతͳ࢖͍͔ͨ 4*0 1*0 $5$ͱ͍ͬͨपลճ࿏ϑΝϛϦ*$Λ઀ଓ͢Δ Z80 RAM ROM SIO PIO CTC

    ͦͷଞ ΩʔϘʔυͱ͔ ը໘ͱ͔ γϦΞϧ ௨৴ ύϥϨϧ ௨৴ λΠϚʔ
  3. ·ͨͷ໊Λ3BTQCFSSZ1J1JDP w ࠷ۙྲྀߦͷϚΠίϯϘʔυ w ೥୅ͷٕज़ w 3". 30. *0౳ͷ໾Λԋ͡Δ w

    ;ͷඦഒ͘Β͍ੑೳ͕͍͍ w ;͸ϩϚϯ୲౰ w ࣗ༝ʹ࢖͑Δϐϯ਺͸ຊ ʮڊେͳԿ͔ʯ https://www.raspberrypi.com/products/raspberry-pi-pico/
  4. ·ͨͷ໊Λ3BTQCFSSZ1J1JDP w ࠷ۙྲྀߦͷϚΠίϯϘʔυ w ೥୅ͷٕज़ w 3". 30. *0౳ͷ໾Λԋ͡Δ w

    ;ͷඦഒ͘Β͍ੑೳ͕͍͍ w ;͸ϩϚϯ୲౰ w ࣗ༝ʹ࢖͑Δϐϯ਺͸ຊ ʮڊେͳԿ͔ʯ https://www.raspberrypi.com/products/raspberry-pi-pico/
  5. ౰࣌ͷࣄ৘͸͋Γͭͭ΋؆ܿ w ిݯ͸୯Ұ7 w ৴߸͸ܭຊ w ΫϩοΫೖྗ w ΞυϨεઢຊ σʔλઢຊ

    w ϝϞϦ੍ޚ৴߸ຊ w $16੍ޚ৴߸ຊ w %."༻৴߸ຊ ΠϯλʔϑΣʔε https://www.zilog.com/docs/z80/um0080.pdf
  6. ҙ֎ͱෆཁͳ৴߸͸ଟ͍  w */5 /.*ׂΓࠐΈؔ࿈ͷϐϯ ‎ׂΓࠐΈ࢖Θͳ͍ͷͰෆཁ w #64\32 "$,^%."ؔ࿈ͷϐϯ ‎%."͠ͳ͍ͷͰෆཁ

    w )"-5$16ͷ)"-5Λࣔ͢ϐϯ ‎ؾʹ͠ͳ͍ͷͰෆཁ w *032*0ཁٻΛࣔ͢ϐϯ ‎࢖Θͳ͍ͷͰෆཁ ඞཁͳϐϯΛݫબ https://www.zilog.com/docs/z80/um0080.pdf
  7. 1J1JDPʹ৐ͬͯΔνοϓ w ຊདྷ(1*0͸ຊ w 1J1JDPͰ͸ຊ͕ෆࣗ༝ w (1*0Ϙʔυ্ͷ-&%ઐ༻ w (1*074:4ిѹܭଌઐ༻ w

    શ෦ͷϐϯ͕ࣗ༝ͳΒ଍ΓΔʂ 31 https://www.raspberrypi.com/products/raspberry-pi-pico/
  8. Z80 RP2040 ≤7*-≤ ≤7*)≤7$$ ≤70-≤ ≤70)≤ ௚݁0, ≤7*-≤ ≤7*)≤ ී௨ͷೖྗ

    յΕΔ ී௨ͷग़ྗ ≤7*-≤ 7$$≤7*)≤7$$  ಈ͔ͳ͍ ΫϩοΫೖྗ ≤70-≤ ≤70)≤7$$ ≤70-≤ ≤70)≤ ϨϕϧγϑλΛ ೖΕͯղܾ ͱͯ΋ࠔΔ
  9. https://forums.raspberrypi.com/viewtopic.php?p=2092122#p2091977 w ݪଇͱͯ͠ɺσʔλγʔτ௨Γʹઃܭ͢Δͷ͕͓͢͢Ί w σʔλγʔτ֎ͷ࢖͍ํ͸ࣗݾ੹೚Ͱ w ࣮͸΋͏ͪΐͬͱ޿͍ൣғͷిѹΛड͚෇͚ΒΕΔ w "%$ͷ͋Δϐϯ͸ɺ*07%% 7

    ·Ͱʢ&4%μΠΦʔυ͕͋ΔͷͰʣ w "%$ͷͳ͍ϐϯ͸ɺ*07%%7ͷͱ͖7·Ͱ w ʮ7τϨϥϯτʯ͸7ʹ଱͑Δ͜ͱΛࢦ͢ͷͰɺ ͜Ε͸ʮ7τϨϥϯτʯͱ͸ݺ͹ͳ͍ w 7ˠ7ͷॱͰిݯ౤ೖ͞ΕΔΑ͋͘Δઃܭͩͱɺ ిݯ౤ೖ࣌ʹμϝʔδ͕ೖΔΑ w ࢓༷ҧ൓Ͱ΋͙͢ʹ͸յΕͳ͍͔΋͠Εͳ͍͕ɺ࣌ؒͱͱ΋ʹμϝʔδೖͬͯ յΕΔ͔΋Α