Terms of Service

pub fn opcode(&self, address: u16, reader: impl Fn(u16) -> u8) -> (Opcode, u16, u16) {
    let opcode_value = reader(address);
    match opcode_value {
        0x00 => (Opcode::Noop, 1, 4),
        0x08 => (Opcode::SaveSP(immediate16()), 3, 20),
        0x09 => (Opcode::AddHL(Register::B, Register::C), 1, 8),
        0x19 => (Opcode::AddHL(Register::D, Register::E), 1, 8),
        0x29 => (Opcode::AddHL(Register::H, Register::L), 1, 8),
        0xCB => {
            let cb_instr = immediate8();
            let cycle_count = if (cb_instr & 0x7) == 0x6 {
                if cb_instr >= 0x40 && cb_instr <= 0x7F {
                    12
                } else {
                    16
                }
            } else {
                8
            };
            (self.cb_opcode(cb_instr), 2, cycle_count)
        }
    }
}

Last updated: June 1, 2023

Please read these Terms of Service ("Terms", "Terms of Service") carefully before using our website and services.

1. Agreement to Terms

By accessing or using our service, you agree to be bound by these Terms. If you disagree with any part of the terms, you may not access the service.

2. Intellectual Property

Our platform and its original content, features, and functionality are and will remain the exclusive property of our company and its licensors. Our service is protected by copyright, trademark, and other laws.

3. User Accounts

When you create an account with us, you must provide information that is accurate, complete, and current at all times. Failure to do so constitutes a breach of the Terms, which may result in immediate termination of your account.

4. User Responsibilities

You are responsible for safeguarding the password that you use to access the service and for any activities or actions under your password.

5. Limitation of Liability

In no event shall our company, nor its directors, employees, partners, agents, suppliers, or affiliates, be liable for any indirect, incidental, special, consequential or punitive damages, including without limitation, loss of profits, data, use, goodwill, or other intangible losses.

6. Changes to Terms

We reserve the right, at our sole discretion, to modify or replace these Terms at any time. If a revision is material we will try to provide at least 30 days' notice prior to any new terms taking effect.

7. Contact Us

If you have any questions about these Terms, please contact us and google.