mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
DREAMWEB: Added assertions on cx == 0xffff
This commit is contained in:
parent
57c68af92e
commit
5efe835f20
@ -463,6 +463,7 @@ public:
|
||||
}
|
||||
|
||||
inline void _movsb(uint size, bool clear_cx = false) {
|
||||
assert(size != 0xffff);
|
||||
uint8 *dst = es.ptr(di, size);
|
||||
uint8 *src = ds.ptr(si, size);
|
||||
memcpy(dst, src, size);
|
||||
@ -478,6 +479,7 @@ public:
|
||||
}
|
||||
|
||||
inline void _movsw(uint size, bool clear_cx = false) {
|
||||
assert(size != 0xffff);
|
||||
_movsb(size * 2, clear_cx);
|
||||
}
|
||||
|
||||
@ -486,6 +488,7 @@ public:
|
||||
}
|
||||
|
||||
inline void _stosb(uint size, bool clear_cx = false) {
|
||||
assert(size != 0xffff);
|
||||
uint8 *dst = es.ptr(di, size);
|
||||
memset(dst, al, size);
|
||||
di += size;
|
||||
@ -499,6 +502,7 @@ public:
|
||||
}
|
||||
|
||||
inline void _stosw(uint size, bool clear_cx = false) {
|
||||
assert(size != 0xffff);
|
||||
uint8 *dst = es.ptr(di, size * 2);
|
||||
di += 2 * size;
|
||||
while(size--) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user