Search found 234 matches
- Sat Nov 23, 2019 11:44 am
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
issue-#204 SYSTEM.BIT bug
do you mean? PROCEDURE Bit (op: INTEGER); VAR reg, base, inx, d: INTEGER; scale, mode: SHORTINT; disp: INTEGER; BEGIN w := 1; ModRm(mode, reg, base, inx, scale, disp); IF op = 0A3H THEN WriteOp("bt"); ELSIF op = 0ABH THEN WriteOp("bts"); ELSIF op = 0B3H THEN WriteOp("btr&quo...
- Fri Nov 22, 2019 4:00 am
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
Re: SYSTEM.BIT bug
BITS is type converter procedure, SYSTEM.BIT is a bit test procedure: PROCEDURE BIT(adr:INTEGER,offset:INTEGER):BOOLEAN BIT is most similar to the IN operator: VAR b:BOOLEAN; set:SET; b := 2 IN set; (*same as*) b := SYSTEM.BIT(SYSTEM.ADR(set),2); BIT is useful to embeded program, You can find it in ...
- Thu Nov 21, 2019 2:12 pm
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
Re: SYSTEM.BIT bug
I have checked all the group, a patch here; PROCEDURE Bit (op: INTEGER); VAR reg, base, inx, d: INTEGER; scale, mode: SHORTINT; disp: INTEGER; BEGIN w := 1; ModRm(mode, reg, base, inx, scale, disp); d := 0; IF op = 0A3H THEN WriteOp("bt"); IF mode = Reg THEN d := 1; END; ELSIF op = 0ABH TH...
- Sat Nov 02, 2019 1:58 am
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
Re: SYSTEM.BIT bug
a demo for using SYSTEM.BIT, actually, it is different from BITS; MODULE ObxSystemBit; IMPORT Log := StdLog, S := SYSTEM; (* memory manager, *) CONST MaxPage = 512 - 1; VAR bitmap: ARRAY (MaxPage + 1) DIV 32 OF SET; (* 16 *) PROCEDURE Do(); VAR b: BOOLEAN; x, y: INTEGER; BEGIN b := S.BIT(x, 31); (* ...
- Fri Nov 01, 2019 2:22 pm
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
Re: SYSTEM.BIT bug
yes,this is a decode problem:Josef Templ wrote:> b :=SYSTEM.BIT(x,y); (* seem wrong here *)
It looks very much like a problem in the decoder. The operands are swapped.
Code: Select all
0F A3 10 bt edx, 0[eax]
Code: Select all
0F A3 10 BT [EAX], EDX
- Thu Oct 31, 2019 10:42 am
- Forum: Bugs
- Topic: issue-#204 SYSTEM.BIT bug
- Replies: 17
- Views: 23456
issue-#204 SYSTEM.BIT bug
according to Intel manual, then BT instruction only accept 0..31 immediate offset and range -2^31 to 2^31 - 1 for a register offset,but SYSTEM.BIT seems output wrong code; MODULE TestSystemBit; IMPORT SYSTEM; PROCEDURE Do(); VAR b:BOOLEAN; x,y:INTEGER; BEGIN b:=SYSTEM.BIT(x,31); b:=SYSTEM.BIT(x,200)...
- Mon Sep 23, 2019 4:44 am
- Forum: Resolved (Bugs)
- Topic: issue-#202 drag & pick across BlackBox instances traps
- Replies: 8
- Views: 12978
Re: issue-#202 drag & pick across BlackBox instances traps
ok! The change is more reasonable.
- Fri Sep 06, 2019 11:07 am
- Forum: Resolved (Bugs)
- Topic: issue-#202 drag & pick across BlackBox instances traps
- Replies: 8
- Views: 12978
Re: issue-#202 drag & pick across BlackBox instances traps
i test it ok:
1, drag&drop selected text to another bb instance window worked as before;
2,holding the alt key and drap the selected text on another instance bb window is forbidden, no trap window anymore
1, drag&drop selected text to another bb instance window worked as before;
2,holding the alt key and drap the selected text on another instance bb window is forbidden, no trap window anymore
- Wed Sep 04, 2019 12:40 am
- Forum: Resolved (Bugs)
- Topic: issue-#202 drag & pick across BlackBox instances traps
- Replies: 8
- Views: 12978
Re: issue-#202 drag & pick across BlackBox instances traps
this issue caused by illeagal memeory access, track to HostWindows.Directory.GetThisWindow, the patch is simple(on windows): VAR mpid:INTEGER; ... PROCEDURE (dir: Directory) GetThisWindow* ( ..VAR wpid:INTEGER; BEGIN ... wnd := WinApi.WindowFromPoint(pt); res:=WinApi.GetWindowThreadProcessId(wnd,wpi...
- Sun Aug 18, 2019 10:57 am
- Forum: Resolved (Features)
- Topic: issue-#201 Importer and Exporter for UTF-8 texts
- Replies: 16
- Views: 22729
Re: issue-#201 Importer and Exporter for UTF-8 texts
for views, no need; considering rtf2odc , a lot of rulers will be added, e.g. bolding a word text will add begin ruler and end ruler, if they convert them to lines, ....
for para,I rarely use it, not familiar with it.
for para,I rarely use it, not familiar with it.