29 Jun 2010 16:21
Information wanted regarding to differences between oldish CPUs and modern CPUs regarding to IRQ handling
For my understanding I wish to compare some knowledge from the C64 with a modern Intel/AMD Linux PC. I don't have much knowledge about the C64 anymore, but some notes at hand. Is there a difference for Intel/AMD Linux PCs for IRQs and NMIs? In other words, for the C64's 6502 CPU there were two commands, SEI and CLI. The SEI command did disable IRQs. IIRC IRQs were interrupts for all hardware and programs, excepted if a program called the SEI command. IIRC just the restore and reset buttons did cause a NMI, an interrupt that can't be disabled, but that isn't done by an interval automatically. So, if you did real time MIDI programming you call SEI to disable all interrupts, so that just the currently needed MIDI rout was allowed to run, there were no IRQs anymore. For example you directly asked the UART connected to the bus if there was a byte: ## see [1] easier to read for C64 Assembler coders Load register_with_the_information_if_there_is_a_byte_for an_MIDI_event_to_a_'memory'_register LSR #to check if the flag is set Branch back_to_load_register_until_the_flag_isn't_cleared_or_as_long_it's_set(Continue reading)
RSS Feed