MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnSend

Method OnSend

nsfplug_ui/NSFMemoryWriteDialog.cpp:88–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void NSFMemoryWriteDialog::OnSend()
89{
90 int i, adr, val;
91 int snum = m_wlist.GetSelCount();
92
93 if(snum==0)
94 {
95 m_wlist.SelItemRange(TRUE, 0, m_wlist.GetCount()-1);
96 snum = m_wlist.GetSelCount();
97 }
98
99 m_wlist.GetSelItems(65536,sidx);
100 if(snum>65536) snum = 65536;
101
102 for(i=0;i<snum;i++)
103 {
104 adr = (int)(m_wlist.GetItemData(sidx[i])>>8);
105 val = (int)(m_wlist.GetItemData(sidx[i])&0xff);
106 pl->bus.Write(adr,val);
107 }
108}
109

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected