我不明白这段代码:
mov ax, 07C0h ; Set up 4K of stack space above buffer
add ax, 544 ; 8k buffer = 512 paragraphs + 32 paragraphs (loader)
cli ; Disable interrupts while changing stack
mov ss, ax
mov sp, 4096
sti ; Restore interrupts
Run Code Online (Sandbox Code Playgroud)
在设置堆栈指针之前,我们要做什么操作呢?
我正在尝试在mongodb中使用全文搜索:
> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.insert({"text" : "?????? ?????? ??????"})
> db.collection.ensureIndex({"text" : "text"}, {"default_language" : "russian"})
Run Code Online (Sandbox Code Playgroud)
句子只在字母案件中有所不同.
> db.collection.runCommand("text" , {search : "??????"})
{
"queryDebugString" : "????||||||",
"language" : "russian",
"results" : [
{
"score" : 0.6666666666666666,
"obj" : {
"_id" : ObjectId("516acfe2dbfd90a837e09131"),
"text" : "?????? ?????? ??????"
}
},
{
"score" : 0.6666666666666666,
"obj" : {
"_id" : ObjectId("516acfe8dbfd90a837e09132"),
"text" : "?????? ?????? ??????"
}
}
],
"stats" : …Run Code Online (Sandbox Code Playgroud)