mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-27 20:51:17 +00:00
Return random data in read contexts
This applies only to addresses which aren't meant to return meaningful data.
This commit is contained in:
parent
ce6f3c5835
commit
5a43ca9a7a
@ -9,6 +9,8 @@
|
|||||||
* itself.
|
* itself.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "apple2.dd.h"
|
#include "apple2.dd.h"
|
||||||
#include "apple2.dec.h"
|
#include "apple2.dec.h"
|
||||||
#include "apple2.enc.h"
|
#include "apple2.enc.h"
|
||||||
@ -598,7 +600,7 @@ SEGMENT_READER(apple2_dd_switch_read)
|
|||||||
apple2_dd_switch_latch(drive, 0);
|
apple2_dd_switch_latch(drive, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return (vm_8bit)(arc4random() & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user