Search found 234 matches

by luowy
Sat Nov 23, 2019 11:44 am
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

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...
by luowy
Fri Nov 22, 2019 4:00 am
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

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 ...
by luowy
Thu Nov 21, 2019 2:12 pm
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

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...
by luowy
Sat Nov 02, 2019 1:58 am
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

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); (* ...
by luowy
Fri Nov 01, 2019 2:22 pm
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

Re: SYSTEM.BIT bug

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.
yes,this is a decode problem:

Code: Select all

0F A3 10 	bt  edx, 0[eax]
the above is wrong, it should be:

Code: Select all

  0F A3 10 	BT	[EAX], EDX  
luowy
by luowy
Thu Oct 31, 2019 10:42 am
Forum: Bugs
Topic: issue-#204 SYSTEM.BIT bug
Replies: 17
Views: 18583

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)...
by luowy
Mon Sep 23, 2019 4:44 am
Forum: Resolved (Bugs)
Topic: issue-#202 drag & pick across BlackBox instances traps
Replies: 8
Views: 10317

Re: issue-#202 drag & pick across BlackBox instances traps

ok! The change is more reasonable.
by luowy
Fri Sep 06, 2019 11:07 am
Forum: Resolved (Bugs)
Topic: issue-#202 drag & pick across BlackBox instances traps
Replies: 8
Views: 10317

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
by luowy
Wed Sep 04, 2019 12:40 am
Forum: Resolved (Bugs)
Topic: issue-#202 drag & pick across BlackBox instances traps
Replies: 8
Views: 10317

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...
by luowy
Sun Aug 18, 2019 10:57 am
Forum: Resolved (Features)
Topic: issue-#201 Importer and Exporter for UTF-8 texts
Replies: 16
Views: 17963

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.