Skip to content

Instantly share code, notes, and snippets.

@barbeque
barbeque / D88STRUC.txt
Created November 18, 2018 16:45
d88 file structure
D88 (D68/D77/D98) File Structure
JPN Translations (http://jpntrans.nobody.jp)
--------------------------------------------------
People Involved
--------------------------------------------------
Translation, editing, etc.: Tokugawa Corporate Forum's Ashura
Hosting: noname345
--------------------------------------------------
@barbeque
barbeque / withblock.py
Created March 21, 2020 03:35
how to implement behaviour of 'with' blocks in python
class Exiter():
def __enter__(self):
print('i am in a block')
return self # critical
def __exit__(self, type, value, tb):
print('goodbye cruel world')
def add(self, a, b):
return a + b
with Exiter() as exiter:
@barbeque
barbeque / p6tech-11-english.md
Created March 28, 2024 22:04
PC-6001 P6Tech #11 - CMT decoding - English translation

Original article at http://p6ers.net/mm/pc-6001/cas/p6tech_11.pdf (thank you)

Basic control of CMT is performed by the SUB CPU. From the Z80 side, through the SUB CPU You can only write 1Byte to tape or read 1Byte from tape. Z80 is first First, tell the SUB CPU whether the operation you are about to perform is to start writing a tape or You need to tell it whether to start reading the file or not. The way to convey this is to use the Z80 explained in the previous chapter. By sending 1 byte or 2 bytes of data consecutively, The SUB CPU goes into CMT control mode.

| command code | processing content |