mirror of
https://github.com/romychs/Ocean-240.2-Emulator.git
synced 2026-11-27 16:22:20 +03:00
fix errors aft refactoring
This commit is contained in:
1 parent
eb4339b86a
commit
9cb2af2145
3 files changed
+20
-5
No files matched your search
@@ -11,11 +11,14 @@ import log "github.com/sirupsen/logrus"
|
||||
|
||||
type I8259 struct {
|
||||
irr byte
|
||||
csw byte
|
||||
}
|
||||
|
||||
type I8259Interface interface {
|
||||
SetIRQ(irq byte)
|
||||
IRR() byte
|
||||
CSW() byte
|
||||
SetCSW(val byte)
|
||||
}
|
||||
|
||||
func (c *I8259) IRR() byte {
|
||||
@@ -47,6 +50,14 @@ func (c *I8259) SetIRQ(irq byte) {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *I8259) CSW() byte {
|
||||
return c.csw
|
||||
}
|
||||
|
||||
func (c *I8259) SetCSW(val byte) {
|
||||
c.csw = val
|
||||
}
|
||||
|
||||
func New() *I8259 {
|
||||
return &I8259{
|
||||
irr: 0,
|
||||
|
||||
Reference in new issue
Block a user